PFND3DDDI_SETVERTEXSHADERDECL callback function (d3dumddi.h)
The SetVertexShaderDecl function sets the vertex shader declaration so that all of the subsequent drawing operations use that declaration.
Syntax
PFND3DDDI_SETVERTEXSHADERDECL Pfnd3dddiSetvertexshaderdecl;
HRESULT Pfnd3dddiSetvertexshaderdecl(
HANDLE hDevice,
HANDLE unnamedParam2
)
{...}
Parameters
hDevice
A handle to the display device (graphics context).
unnamedParam2
hShaderHandle [in]
A handle to the vertex shader declaration object.
Return value
SetVertexShaderDecl returns S_OK or an appropriate error result if the vertex shader declaration is not successfully set.
Remarks
After setting the vertex shader declaration, all of the drawing operations use that declaration until another declaration is selected.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available in Windows Vista and later versions of the Windows operating systems. |
Target Platform | Desktop |
Header | d3dumddi.h (include D3dumddi.h) |