InputElement Constructor(String,Int32,Format,Int32)
In This Topic
Initializes a new instance of the C1.Win.DX.Direct2D.InputElement struct.
Syntax
'Declaration
Public Function New( _
ByVal As System.String, _
ByVal As System.Integer, _
ByVal As Format, _
ByVal As System.Integer _
)
public InputElement(
System.string ,
System.int ,
Format ,
System.int
)
Parameters
- name
- The HLSL semantic associated with this element in a shader input-signature.
- 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
- The data type of the element data.
- slot
- An integer value that identifies the input-assembler. Valid values are between 0 and 15.
See Also