Blt
Expand Minimize

SetVertexShaderDecl routine

The SetVertexShaderDecl function sets the vertex shader declaration so that all of the subsequent drawing operations use that declaration.

Syntax


PFND3DDDI_SETVERTEXSHADERDECL SetVertexShaderDecl;

__checkReturn HRESULT APIENTRY SetVertexShaderDecl(
  _In_ HANDLE hDevice,
  _In_ HANDLE hShaderHandle
)
{ ... }

Parameters

hDevice [in]

A handle to the display device (graphics context).

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

Target platform

Desktop

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dumddi.h (include D3dumddi.h)

See also

D3DDDI_DEVICEFUNCS

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft