D3DHAL_DP2CREATEPIXELSHADER structure (d3dhal.h)
DirectX 8.0 and later versions only.
The D3DHAL_DP2CREATEPIXELSHADER structure is used to create a pixel shader when a D3DDP2OP_CREATEPIXELSHADER opcode is received by D3dDrawPrimitives2.
Syntax
typedef struct _D3DHAL_DP2CREATEPIXELSHADER {
DWORD dwHandle;
DWORD dwCodeSize;
} D3DHAL_DP2CREATEPIXELSHADER;
Members
dwHandle
Specifies the handle to the pixel shader that is assigned by the runtime. This value is guaranteed to be subzero.
dwCodeSize
Specifies the size, in bytes, of the shader code following this data structure in the DP2 stream.
Remarks
The runtime generates a handle for this shader before calling the driver. The shader code itself follows the D3DHAL_DP2CREATEPIXELSHADER in the DP2 stream. See Direct3D Driver Shader Codes for information about the format of an individual shader code and the tokens that comprise each shader code.
Before calling the driver, the runtime validates the pixel shader code to ensure that it is legal for the specified shader language version.
It is important to note that the creation of a pixel shader does not imply the setting of the current shader.
Requirements
Requirement | Value |
---|---|
Header | d3dhal.h (include D3dhal.h) |
See also
D3DDP2OP_CREATEPIXELSHADER