[]
        
(Showing Draft Content)

C1.Util.DX.Direct3D11.InputElement.-ctor

InputElement Constructor

InputElement(string, int, Format, int, int, InputClassification, int)

Initializes a new instance of the InputElement struct.

Declaration
public InputElement(string name, int index, Format format, int offset, int slot, InputClassification slotClass, int stepRate)
Parameters
Type Name Description
string name

The HLSL semantic associated with this element in a shader input-signature.

int index

The semantic index for the element. A semantic index modifies a semantic, with an integer index number. A semantic index is only needed in a case where there is more than one element with the same semantic. For example, a 4x4 matrix would have four components each with the semantic name matrix, however each of the four component would have different semantic indices (0, 1, 2, and 3).

Format format

The data type of the element data.

int offset

Offset (in bytes) between each element. Use AppendAligned for convenience to define the current element directly after the previous one, including any packing if necessary.

int slot

An integer value that identifies the input-assembler. Valid values are between 0 and 15.

InputClassification slotClass

Identifies the input data class for a single input slot.

int stepRate

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.

InputElement(string, int, Format, int, int)

Initializes a new instance of the InputElement struct.

Declaration
public InputElement(string name, int index, Format format, int offset, int slot)
Parameters
Type Name Description
string name

The HLSL semantic associated with this element in a shader input-signature.

int index

The semantic index for the element. A semantic index modifies a semantic, with an integer index number. A semantic index is only needed in a case where there is more than one element with the same semantic. For example, a 4x4 matrix would have four components each with the semantic name matrix, however each of the four component would have different semantic indices (0, 1, 2, and 3).

Format format

The data type of the element data.

int offset

Offset (in bytes) between each element. Use AppendAligned for convenience to define the current element directly after the previous one, including any packing if necessary.

int slot

An integer value that identifies the input-assembler. Valid values are between 0 and 15.

InputElement(string, int, Format, int)

Initializes a new instance of the InputElement struct.

Declaration
public InputElement(string name, int index, Format format, int slot)
Parameters
Type Name Description
string name

The HLSL semantic associated with this element in a shader input-signature.

int index

The semantic index for the element. A semantic index modifies a semantic, with an integer index number. A semantic index is only needed in a case where there is more than one element with the same semantic. For example, a 4x4 matrix would have four components each with the semantic name matrix, however each of the four component would have different semantic indices (0, 1, 2, and 3).

Format format

The data type of the element data.

int slot

An integer value that identifies the input-assembler. Valid values are between 0 and 15.