Expand Minimize

D2D1_CUSTOM_VERTEX_BUFFER_PROPERTIES structure

Defines a vertex shader and the input element description to define the input layout. The combination is used to allow a custom vertex effect to create a custom vertex shader and pass it a custom layout.

Syntax


typedef struct D2D1_CUSTOM_VERTEX_BUFFER_PROPERTIES {
  GUID                          vertexShader;
  const D2D1_INPUT_ELEMENT_DESC *inputElements;
  UINT32                        elementCount;
  UINT32                        stride;
} D2D1_CUSTOM_VERTEX_BUFFER_PROPERTIES;

Members

vertexShader

The unique ID of the vertex shader.

inputElements

An array of input assembler stage data types.

elementCount

The number of input elements in the vertex shader.

stride

The vertex stride.

Remarks

The vertex shader will be loaded by the CreateVertexBuffer call that accepts the vertex buffer properties.

This structure does not need to be specified if one of the standard vertex shaders is used.

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

See also

D2D1_VERTEX_USAGE
ID2D1EffectContext::CreateVertexBuffer
ID2D1EffectContext::LoadVertexShader

 

 

Community Additions

ADD
Show:
© 2014 Microsoft