D2D1_INPUT_ELEMENT_DESC structure

A description of a single element to the vertex layout.

Syntax


typedef struct D2D1_INPUT_ELEMENT_DESC {
  PCSTR       semanticName;
  UINT32      semanticIndex;
  DXGI_FORMAT format;
  UINT32      inputSlot;
  UINT32      alignedByteOffset;
} D2D1_INPUT_ELEMENT_DESC;

Members

semanticName

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

semanticIndex

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 components would have different semantic indices (0, 1, 2, and 3).

format

The data type of the element data.

inputSlot

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

alignedByteOffset

The offset in bytes between each element.

Remarks

This structure is a subset of D3D11_INPUT_ELEMENT_DESC that omits fields required to define a vertex layout.

If the D2D1_APPEND_ALIGNED_ELEMENT constant is used for alignedByteOffset, the elements will be packed contiguously for convenience.

Requirements

Minimum supported client

Windows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

D2d1effectauthor.h

Type library

D2d1.lib;
D2d1.dll

See also

D2D1_VERTEX_USAGE
ID2D1EffectContext::CreateVertexBuffer
ID2D1EffectContext::LoadVertexShader
Getting Started with the Input-Assembler Stage
Semantics
Signatures

 

 

Show: