CreateVertexShaderDecl routine
The CreateVertexShaderDecl function converts the vertex shader declaration into a hardware-specific format and associates the declaration with a shader handle.
Syntax
PFND3DDDI_CREATEVERTEXSHADERDECL CreateVertexShaderDecl;
__checkReturn HRESULT APIENTRY CreateVertexShaderDecl(
_In_ HANDLE hDevice,
_Inout_ D3DDDIARG_CREATEVERTEXSHADERDECL *pData,
_In_ const D3DDDIVERTEXELEMENT *pVertexElements
)
{ ... }
Parameters
- hDevice [in]
-
A handle to the display device (graphics context).
- pData [in, out]
-
A pointer to a D3DDDIARG_CREATEVERTEXSHADERDECL structure that retrieves the shader handle that is associated with the vertex shader declaration that is specified by pVertexElements.
- pVertexElements [in]
-
An array of D3DDDIVERTEXELEMENT structures that make up the vertex shader declaration.
Return value
CreateVertexShaderDecl returns S_OK or an appropriate error result if the vertex shader declaration object is not successfully created.
Remarks
The array of D3DDDIVERTEXELEMENT structures specified by pVertexElements defines vertex data into the pipeline.
For more information about programming shader assemblers, see Processing Shader Codes.
Requirements
|
Version | Available in Windows Vista and later versions of the Windows operating systems. |
|---|---|
|
Header |
|
See also
Send comments about this topic to Microsoft
Build date: 11/29/2012
