Struct ResourceLayoutElementDescription
Describes an individual resource element in a ResourceLayout.
Implements
System.IEquatable<ResourceLayoutElementDescription>
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Veldrid
Assembly: cs.temp.dll.dll
Syntax
public struct ResourceLayoutElementDescription : IEquatable<ResourceLayoutElementDescription>
Constructors
ResourceLayoutElementDescription(String, ResourceKind, ShaderStages)
Constructs a new ResourceLayoutElementDescription.
Declaration
public ResourceLayoutElementDescription(string name, ResourceKind kind, ShaderStages stages)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the element. |
ResourceKind | kind | The kind of resource. |
ShaderStages | stages | The ShaderStages in which this element is used. |
ResourceLayoutElementDescription(String, ResourceKind, ShaderStages, ResourceLayoutElementOptions)
Constructs a new ResourceLayoutElementDescription.
Declaration
public ResourceLayoutElementDescription(string name, ResourceKind kind, ShaderStages stages, ResourceLayoutElementOptions options)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the element. |
ResourceKind | kind | The kind of resource. |
ShaderStages | stages | The ShaderStages in which this element is used. |
ResourceLayoutElementOptions | options | Miscellaneous resource options for this element. |
Fields
Kind
The kind of resource.
Declaration
public ResourceKind Kind
Field Value
Type | Description |
---|---|
ResourceKind |
Name
The name of the element.
Declaration
public string Name
Field Value
Type | Description |
---|---|
System.String |
Options
Miscellaneous resource options for this element.
Declaration
public ResourceLayoutElementOptions Options
Field Value
Type | Description |
---|---|
ResourceLayoutElementOptions |
Stages
The ShaderStages in which this element is used.
Declaration
public ShaderStages Stages
Field Value
Type | Description |
---|---|
ShaderStages |
Methods
Equals(ResourceLayoutElementDescription)
Element-wise equality.
Declaration
public bool Equals(ResourceLayoutElementDescription other)
Parameters
Type | Name | Description |
---|---|---|
ResourceLayoutElementDescription | other | The instance to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | True if all elements are equal; false otherswise. |
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A 32-bit signed integer that is the hash code for this instance. |
Overrides
System.ValueType.GetHashCode()
Implements
System.IEquatable<T>