Skip to content

Latest commit

 

History

History
101 lines (72 loc) · 3.1 KB

nc-d3dumddi-pfnd3dddi_updatepalette.md

File metadata and controls

101 lines (72 loc) · 3.1 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_UPDATEPALETTE
PFND3DDDI_UPDATEPALETTE (d3dumddi.h)
The UpdatePalette function updates a texture palette.
display\updatepalette.htm
display
05/10/2018
PFND3DDDI_UPDATEPALETTE callback function
PFND3DDDI_UPDATEPALETTE, PFND3DDDI_UPDATEPALETTE callback, UpdatePalette, UpdatePalette callback function [Display Devices], UserModeDisplayDriver_Functions_d3b21e65-68dc-44d9-b5b3-96f37588965e.xml, d3dumddi/UpdatePalette, display.updatepalette
d3dumddi.h
D3dumddi.h
Desktop
Available in Windows Vista and later versions of the Windows operating systems.
Windows
PFND3DDDI_UPDATEPALETTE
d3dumddi/PFND3DDDI_UPDATEPALETTE
APIRef
kbSyntax
UserDefined
d3dumddi.h
PFND3DDDI_UPDATEPALETTE

PFND3DDDI_UPDATEPALETTE callback function

-description

The UpdatePalette function updates a texture palette.

-parameters

-param hDevice [in]

A handle to the display device (graphics context).

-param unnamedParam2

pData [in]

A pointer to a D3DDDIARG_UPDATEPALETTE structure that describes parameters for the palette-update operation.

-param unnamedParam3

pPaletteData [in]

An array of PALETTEENTRY structures to update. For more information about PALETTEENTRY, see the Microsoft Windows SDK documentation.

-returns

UpdatePalette returns S_OK or an appropriate error result if the texture palette is not successfully updated.

-remarks

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:

  • The PaletteHandle member specifies the handle to the palette that is associated with the surface.
  • The StartIndex member specifies the index of the entry in the array at pPaletteData where the update should start.
  • The NumEntries member specifies the number of entries in the array at pPaletteData to update.

-see-also

D3DDDIARG_UPDATEPALETTE

D3DDDI_DEVICEFUNCS