[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct3D11.InputElement

Struct InputElement

Namespace
GrapeCity.Documents.DX.Direct3D11
Assembly
GcDocs.DX.Windows.dll

D3D11_INPUT_ELEMENT_DESC

public struct InputElement : IEquatable<InputElement>
Implements
System.IEquatable<T><InputElement>
Inherited Members
System.ValueType.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()

Constructors

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

Initializes a new instance of the Direct3D11.InputElement struct.

public InputElement(string name, int index, Format format, int offset, int slot, InputClassification slotClass, int stepRate)

Parameters

name string

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

index int

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.

offset int

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.

slot int

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

slotClass InputClassification

Identifies the input data class for a single input slot.

stepRate int

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 Direct3D11.InputElement struct.

public InputElement(string name, int index, Format format, int offset, int slot)

Parameters

name string

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

index int

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.

offset int

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.

slot int

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 Direct3D11.InputElement struct.

public InputElement(string name, int index, Format format, int slot)

Parameters

name string

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

index int

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.

slot int

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

Fields

AlignedByteOffset

unsigned int AlignedByteOffset

public int AlignedByteOffset

Field Value

int

Classification

D3D11_INPUT_CLASSIFICATION InputSlotClass

public InputClassification Classification

Field Value

InputClassification

Format

DXGI_FORMAT Format

public Format Format

Field Value

Format

InstanceDataStepRate

unsigned int InstanceDataStepRate

public int InstanceDataStepRate

Field Value

int

SemanticIndex

unsigned int SemanticIndex

public int SemanticIndex

Field Value

int

SemanticName

const char* SemanticName

public string SemanticName

Field Value

string

Slot

unsigned int InputSlot

public int Slot

Field Value

int

Properties

AppendAligned

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; }

Property Value

int

Methods

Equals(InputElement)

Determines whether the specified InputElement is equal to this instance.

public bool Equals(InputElement other)

Parameters

other InputElement

Returns

bool

Equals(object)

Determines whether the specified object is equal to this instance.

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

Returns a hash code for this instance.

public override int GetHashCode()

Returns

int

Operators

operator ==(InputElement, InputElement)

Determines if the specified values are equal.

public static bool operator ==(InputElement left, InputElement right)

Parameters

left InputElement
right InputElement

Returns

bool

operator !=(InputElement, InputElement)

Determines if the specified values are not equal.

public static bool operator !=(InputElement left, InputElement right)

Parameters

left InputElement
right InputElement

Returns

bool