D3DHAL_DP2CREATEVERTEXSHADERFUNC structure (d3dhal.h)

DirectX 9.0 and later versions only.

The D3DHAL_DP2CREATEVERTEXSHADERFUNC structure is used to create a vertex shader code object when a D3DDP2OP_CREATEVERTEXSHADERFUNC opcode is received by D3dDrawPrimitives2.

Syntax

typedef struct _D3DHAL_DP2CREATEVERTEXSHADERFUNC {
  DWORD dwHandle;
  DWORD dwSize;
} D3DHAL_DP2CREATEVERTEXSHADERFUNC;

Members

dwHandle

Specifies the handle to the vertex shader code that is assigned by the runtime. This value is guaranteed to be subzero.

dwSize

Specifies the shader code size in bytes.

Remarks

When the runtime calls the driver's D3dDrawPrimitives2 function with this token, the driver should validate the given shader code and report success or failure accordingly.

Vertex shader code follows D3DHAL_DP2CREATEVERTEXSHADERFUNC in the command stream. See Direct3D Driver Shader Codes for information about the format of individual shader code and the tokens that comprise each shader code.

The DirectX 9.0 runtime sets dwHandle to zero to indicate a fixed function pipeline.

Requirements

Requirement Value
Header d3dhal.h (include D3dhal.h)

See also

D3DDP2OP_CREATEVERTEXSHADERFUNC

D3DHAL_DP2CREATEVERTEXSHADERDECL

D3DHAL_DP2VERTEXSHADER

D3dDrawPrimitives2