Struct D3D11InputElementDesc
A description of a single element for the input-assembler stage.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D3D11
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
public struct D3D11InputElementDesc : IEquatable<D3D11InputElementDesc>
Constructors
| Edit this page View SourceD3D11InputElementDesc(string, uint, DxgiFormat, uint, uint, D3D11InputClassification, uint)
Initializes a new instance of the D3D11InputElementDesc struct.
Declaration
public D3D11InputElementDesc(string semanticName, uint semanticIndex, DxgiFormat format, uint inputSlot, uint alignedByteOffset, D3D11InputClassification inputSlotClass, uint instanceDataStepRate)
Parameters
Type | Name | Description |
---|---|---|
string | semanticName | The HLSL semantic associated with this element in a shader input-signature. |
uint | semanticIndex | The semantic index for the element. |
DxgiFormat | format | The data type of the element data. |
uint | inputSlot | An integer value that identifies the input-assembler. |
uint | alignedByteOffset | Offset (in bytes) between each element. Optional. |
D3D11InputClassification | inputSlotClass | Identifies the input data class for a single input slot. |
uint | instanceDataStepRate | The number of instances to draw using the same per-instance data before advancing in the buffer by one element. This value must be 0 for an element that contains per-vertex data. |
Properties
| Edit this page View SourceAlignedByteOffset
Gets or sets the offset (in bytes) between each element. Optional.
Declaration
public uint AlignedByteOffset { get; set; }
Property Value
Type | Description |
---|---|
uint |
Format
Gets or sets the data type of the element data.
Declaration
public DxgiFormat Format { get; set; }
Property Value
Type | Description |
---|---|
DxgiFormat |
InputSlot
Gets or sets an integer value that identifies the input-assembler.
Declaration
public uint InputSlot { get; set; }
Property Value
Type | Description |
---|---|
uint |
InputSlotClass
Gets or sets the input data class for a single input slot.
Declaration
public D3D11InputClassification InputSlotClass { get; set; }
Property Value
Type | Description |
---|---|
D3D11InputClassification |
InstanceDataStepRate
Gets or sets the number of instances to draw using the same per-instance data before advancing in the buffer by one element. This value must be 0 for an element that contains per-vertex data.
Declaration
public uint InstanceDataStepRate { get; set; }
Property Value
Type | Description |
---|---|
uint |
SemanticIndex
Gets or sets the semantic index for the element.
Declaration
public uint SemanticIndex { get; set; }
Property Value
Type | Description |
---|---|
uint |
SemanticName
Gets or sets the HLSL semantic associated with this element in a shader input-signature.
Declaration
public string SemanticName { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceEquals(D3D11InputElementDesc)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(D3D11InputElementDesc other)
Parameters
Type | Name | Description |
---|---|---|
D3D11InputElementDesc | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
Operators
| Edit this page View Sourceoperator ==(D3D11InputElementDesc, D3D11InputElementDesc)
Compares two D3D11InputElementDesc objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(D3D11InputElementDesc left, D3D11InputElementDesc right)
Parameters
Type | Name | Description |
---|---|---|
D3D11InputElementDesc | left | The left D3D11InputElementDesc to compare. |
D3D11InputElementDesc | right | The right D3D11InputElementDesc to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(D3D11InputElementDesc, D3D11InputElementDesc)
Compares two D3D11InputElementDesc objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(D3D11InputElementDesc left, D3D11InputElementDesc right)
Parameters
Type | Name | Description |
---|---|---|
D3D11InputElementDesc | left | The left D3D11InputElementDesc to compare. |
D3D11InputElementDesc | right | The right D3D11InputElementDesc to compare. |
Returns
Type | Description |
---|---|
bool |