// d3dumddi.h
PFND3DDDI_UPDATEPALETTE Pfnd3dddiUpdatepalette;
HRESULT Pfnd3dddiUpdatepalette(
[in] HANDLE hDevice,
const D3DDDIARG_UPDATEPALETTE *unnamedParam2,
const PALETTEENTRY *unnamedParam3
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The UpdatePalette function updates a texture palette.
hDevice [in]A handle to the display device (graphics context).
unnamedParam2pData [in]
A pointer to a D3DDDIARG_UPDATEPALETTE structure that describes parameters for the palette-update operation.
unnamedParam3pPaletteData [in]
An array of PALETTEENTRY structures to update. For more information about PALETTEENTRY, see the Microsoft Windows SDK documentation.
UpdatePalette returns S_OK or an appropriate error result if the texture palette is not successfully updated.
The palette data in the array that is specified by pPaletteData consists of one UINT value for each palette entry (PALETTEENTRY structure). The palette entry is in ARGB format, with 8 bits for each of the four channels.
The user-mode display driver uses the following members of the D3DDDIARG_UPDATEPALETTE structure that is pointed to by pData to update the texture palette: