Struct ResourceLayoutElementDescription
- Namespace
- NeoVeldrid
- Assembly
- NeoVeldrid.dll
Describes an individual resource element in a ResourceLayout.
public struct ResourceLayoutElementDescription : IEquatable<ResourceLayoutElementDescription>
- Implements
- Inherited Members
Constructors
ResourceLayoutElementDescription(string, ResourceKind, ShaderStages)
Constructs a new ResourceLayoutElementDescription.
public ResourceLayoutElementDescription(string name, ResourceKind kind, ShaderStages stages)
Parameters
namestringThe name of the element.
kindResourceKindThe kind of resource.
stagesShaderStagesThe ShaderStages in which this element is used.
ResourceLayoutElementDescription(string, ResourceKind, ShaderStages, ResourceLayoutElementOptions)
Constructs a new ResourceLayoutElementDescription.
public ResourceLayoutElementDescription(string name, ResourceKind kind, ShaderStages stages, ResourceLayoutElementOptions options)
Parameters
namestringThe name of the element.
kindResourceKindThe kind of resource.
stagesShaderStagesThe ShaderStages in which this element is used.
optionsResourceLayoutElementOptionsMiscellaneous resource options for this element.
Fields
Kind
The kind of resource.
public ResourceKind Kind
Field Value
Name
The name of the element.
public string Name
Field Value
Options
Miscellaneous resource options for this element.
public ResourceLayoutElementOptions Options
Field Value
Stages
The ShaderStages in which this element is used.
public ShaderStages Stages
Field Value
Methods
Equals(ResourceLayoutElementDescription)
Element-wise equality.
public bool Equals(ResourceLayoutElementDescription other)
Parameters
otherResourceLayoutElementDescriptionThe instance to compare to.
Returns
- bool
True if all elements are equal; false otherswise.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.