Skip to content

Latest commit

 

History

History
75 lines (57 loc) · 2.65 KB

nc-d3dumddi-pfnd3dddi_setvertexshaderfunc.md

File metadata and controls

75 lines (57 loc) · 2.65 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
NC:d3dumddi.PFND3DDDI_SETVERTEXSHADERFUNC
PFND3DDDI_SETVERTEXSHADERFUNC (d3dumddi.h)
The SetVertexShaderFunc function sets the vertex shader code so that all of the subsequent drawing operations use that code.
display\setvertexshaderfunc.htm
display
05/10/2018
PFND3DDDI_SETVERTEXSHADERFUNC callback function
PFND3DDDI_SETVERTEXSHADERFUNC, PFND3DDDI_SETVERTEXSHADERFUNC callback, SetVertexShaderFunc, SetVertexShaderFunc callback function [Display Devices], UserModeDisplayDriver_Functions_aeaa5094-5619-4cf5-b2c3-c4b6aeed9b33.xml, d3dumddi/SetVertexShaderFunc, display.setvertexshaderfunc
d3dumddi.h
D3dumddi.h
Desktop
Available in Windows Vista and later versions of the Windows operating systems.
Windows
PFND3DDDI_SETVERTEXSHADERFUNC
d3dumddi/PFND3DDDI_SETVERTEXSHADERFUNC
APIRef
kbSyntax
UserDefined
d3dumddi.h
PFND3DDDI_SETVERTEXSHADERFUNC

PFND3DDDI_SETVERTEXSHADERFUNC callback function

-description

The SetVertexShaderFunc function sets the vertex shader code so that all of the subsequent drawing operations use that code.

-parameters

-param hDevice

A handle to the display device (graphics context).

-param unnamedParam2

hShaderHandle [in]

A handle to the vertex shader code object.

-returns

SetVertexShaderFunc returns S_OK or an appropriate error result if the vertex shader code is not successfully set.

-remarks

After setting the vertex shader code, all of the drawing operations use that code until another code is selected.

For user-mode display drivers that support vertex shaders before version 2.0, the Microsoft Direct3D runtime passes 0 in the hShaderHandle parameter to indicate a fixed-function pipeline. For user-mode display drivers that support vertex shader version 2.0 or later, the runtime converts Direct3D fixed-function vertex state to vertex shader version 2.0. For more information fixed-function state, see Converting the Direct3D Fixed-Function State.

-see-also

D3DDDI_DEVICEFUNCS