// d3dumddi.h
PFND3DDDI_SETTEXTURESTAGESTATE Pfnd3dddiSettexturestagestate;
HRESULT Pfnd3dddiSettexturestagestate(
HANDLE hDevice,
const D3DDDIARG_TEXTURESTAGESTATE *unnamedParam2
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The SetTextureStageState function updates the state of a texture at a particular stage in a multiple-texture group.
hDeviceA handle to the display device (graphics context).
unnamedParam2pData [in]
A pointer to a D3DDDIARG_TEXTURESTAGESTATE structure that describes how to update the texture.
SetTextureStageState returns S_OK or an appropriate error result if the texture is not successfully updated.
The user-mode display driver is not required to store colorkey values in its private allocation structure because the Microsoft Direct3D runtime always passes the appropriate colorkeying information in calls to the driver's SetTextureStageState function. For example, the runtime passes the following colorkey information in the indicated members of the D3DDDIARG_TEXTURESTAGESTATE structure that is pointed to by pData to perform the indicated colorkey operation: