Skip to content

Latest commit

 

History

History
85 lines (61 loc) · 3.06 KB

ns-d3dhal-_d3dhal_dp2createpixelshader.md

File metadata and controls

85 lines (61 loc) · 3.06 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NS:d3dhal._D3DHAL_DP2CREATEPIXELSHADER
_D3DHAL_DP2CREATEPIXELSHADER (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.
display\d3dhal_dp2createpixelshader.htm
display
05/10/2018
D3DHAL_DP2CREATEPIXELSHADER structure
*LPD3DHAL_DP2CREATEPIXELSHADER, D3DHAL_DP2CREATEPIXELSHADER, D3DHAL_DP2CREATEPIXELSHADER structure [Display Devices], LPD3DHAL_DP2CREATEPIXELSHADER, LPD3DHAL_DP2CREATEPIXELSHADER structure pointer [Display Devices], _D3DHAL_DP2CREATEPIXELSHADER, d3dhal/D3DHAL_DP2CREATEPIXELSHADER, d3dhal/LPD3DHAL_DP2CREATEPIXELSHADER, d3dstrct_b17c15ca-697a-407b-b304-ac52ccf6ce6e.xml, display.d3dhal_dp2createpixelshader
d3dhal.h
D3dhal.h
Windows
Windows
D3DHAL_DP2CREATEPIXELSHADER
_D3DHAL_DP2CREATEPIXELSHADER
d3dhal/_D3DHAL_DP2CREATEPIXELSHADER
D3DHAL_DP2CREATEPIXELSHADER
d3dhal/D3DHAL_DP2CREATEPIXELSHADER
APIRef
kbSyntax
HeaderDef
d3dhal.h
_D3DHAL_DP2CREATEPIXELSHADER
D3DHAL_DP2CREATEPIXELSHADER

_D3DHAL_DP2CREATEPIXELSHADER structure

-description

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.

-struct-fields

-field dwHandle

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

-field 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.

-see-also

D3DDP2OP_CREATEPIXELSHADER

D3DHAL_DP2PIXELSHADER

D3dDrawPrimitives2