// d3dumddi.h
PFND3DDDI_SETRENDERSTATE Pfnd3dddiSetrenderstate;
HRESULT Pfnd3dddiSetrenderstate(
HANDLE hDevice,
const D3DDDIARG_RENDERSTATE *unnamedParam2
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The SetRenderState function updates a render state.
hDeviceA handle to the display device (graphics context).
unnamedParam2pData [in]
A pointer to a D3DDDIARG_RENDERSTATE structure that describes how to update the render state.
SetRenderState returns S_OK or an appropriate error result if the render state is not successfully updated.
The Microsoft Direct3D runtime maps BeginScene and EndScene calls from applications to the user-mode display driver's SetRenderState function. When the runtime receives a BeginScene call, it sets the State member of the D3DDDIARG_RENDERSTATE structure that is pointed to by pData to D3DRENDERSTATE_SCENECAPTURE and the Value member of D3DDDIARG_RENDERSTATE to TRUE and then calls SetRenderState. When the runtime receives an EndScene call, it sets the State member to D3DRENDERSTATE_SCENECAPTURE and the Value member to FALSE and then calls SetRenderState. In between these calls to SetRenderState, the driver captures geometric data within a frame.