D3DHAL_DP2CREATEVERTEXSHADER structure (d3dhal.h)

DirectX 8.0 and later versions only.

The D3DHAL_DP2CRED3dDrawPrimitives2ATEVERTEXSHADER structure is used to create a vertex shader when a D3DDP2OP_CREATEVERTEXSHADER opcode is received by .

Syntax

typedef struct _D3DHAL_DP2CREATEVERTEXSHADER {
  DWORD dwHandle;
  DWORD dwDeclSize;
  DWORD dwCodeSize;
} D3DHAL_DP2CREATEVERTEXSHADER;

Members

dwHandle

Specifies the handle to the vertex shader that is assigned by the runtime. This value is guaranteed to be subzero. Furthermore, although flexible vertex format (FVF) codes are part of the shader handle namespace, it is guaranteed that the handle passed will not be an FVF code.

dwDeclSize

Specifies the shader declaration size in bytes.

dwCodeSize

Specifies the shader code size in bytes.

Remarks

Before invoking the driver, the runtime performs validation to ensure that the specified shader is legal for the specified shader language version. The runtime flushes all pending state and rendering when this token is to be sent to the driver. Thus, processing of this token is assumed to be synchronous with the runtime and the driver reports failure of the creation request by failing the D3dDrawPrimitives2 DDI call. Thus, the driver should validate the given shader declaration and code on receipt of this token and report success or failure accordingly.

See Direct3D Driver Shader Codes for information about the format of an individual shader code and the tokens that comprise each shader code.

Requirements

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

See also

D3DDP2OP_CREATEVERTEXSHADER

D3DHAL_DP2VERTEXSHADER

D3dDrawPrimitives2