[]
D2D1_INPUT_ELEMENT_DESC
public struct InputElement : IEquatable<InputElement>
Initializes a new instance of the C1.Win.DX.Direct2D.InputElement struct.
public InputElement(string name, int index, Format format, int offset, int slot)
name
stringThe HLSL semantic associated with this element in a shader input-signature.
index
intThe 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
FormatThe data type of the element data.
offset
intOffset (in bytes) between each element. Use AppendAligned for convenience to define the current element directly after the previous one, including any packing if necessary.
slot
intAn integer value that identifies the input-assembler. Valid values are between 0 and 15.
Initializes a new instance of the C1.Win.DX.Direct2D.InputElement struct.
public InputElement(string name, int index, Format format, int slot)
name
stringThe HLSL semantic associated with this element in a shader input-signature.
index
intThe 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
FormatThe data type of the element data.
slot
intAn integer value that identifies the input-assembler. Valid values are between 0 and 15.
unsigned int alignedByteOffset
public int AlignedByteOffset
DXGI_FORMAT format
public Format Format
unsigned int semanticIndex
public int SemanticIndex
const char* semanticName
public string SemanticName
unsigned int inputSlot
public int Slot
Returns a value that can be used for the offset parameter of an InputElement to indicate that the element should be aligned directly after the previous element, including any packing if neccessary.
public static int AppendAligned { get; }
A value used to align input elements.
Determines whether the specified InputElement is equal to this instance.
public bool Equals(InputElement other)
other
InputElementDetermines whether the specified object is equal to this instance.
public override bool Equals(object obj)
obj
objectReturns a hash code for this instance.
public override int GetHashCode()
Determines if the specified values are equal.
public static bool operator ==(InputElement left, InputElement right)
left
InputElementright
InputElementDetermines if the specified values are not equal.
public static bool operator !=(InputElement left, InputElement right)
left
InputElementright
InputElement