PFND3DDDI_SETVERTEXSHADERDECL callback function

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 Arg2
)
{...}

Parameters

hDevice

A handle to the display device (graphics context).

Arg2

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

   
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Desktop
Header d3dumddi.h (include D3dumddi.h)

See Also

D3DDDI_DEVICEFUNCS