InputElement Structure
Last Update: Dec 2012

InputElement.InputElement Method (SharpDX.Direct3D11)

Initializes a new instance of the InputElement struct.

Namespace: SharpDX.Direct3D11
Assembly: .Assembly.FullName (SharpDX.Direct3D11.dll
  • C#
  • VB
  • C++
  • F#
public InputElement(
	string name, 
	int index, 
	Format format, 
	int offset, 
	int slot, 
	InputClassification slotClass, 
	int stepRate

Syntax for VB is not yet implemented.

Syntax for C++ is not yet implemented

Syntax for F# is not yet implemented.


Type: System.String
The HLSL semantic associated with this element in a shader input-signature.
Type: System.Int32
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).
Type: SharpDX.DXGI.Format
The data type of the element data.
Type: System.Int32
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.
Type: System.Int32
An integer value that identifies the input-assembler. Valid values are between 0 and 15.
Type: SharpDX.Direct3D11.InputClassification
Identifies the input data class for a single input slot.
Type: System.Int32
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.
Supported in:

 All Windows Desktop - .NET 2.0+ - .NET 4.0+
 Windows 8 Metro - DirectX11.1 - .NET 4.5 Core
 Windows Phone 8 - DirectX11.1 - .NET 4.5 Core
 Windows 8 Desktop - DirectX11.1 - .NET 4.0+