Blt
Expand Minimize

GenerateMipSubLevels routine

The GenerateMipSubLevels function regenerates the sublevels of a MIP-map texture.

Syntax


PFND3DDDI_GENERATEMIPSUBLEVELS GenerateMipSubLevels;

__checkReturn HRESULT APIENTRY GenerateMipSubLevels(
  _In_  HANDLE                         hDevice,
  _In_  const D3DDDIARG_GENERATEMIPSUBLEVELS *pData
)
{ ... }

Parameters

hDevice [in]

A handle to the display device (graphics context).

pData [in]

A pointer to a D3DDDIARG_GENERATEMIPSUBLEVELS structure that describes how to generate the sublevels of a MIP-map texture.

Return value

GenerateMipSubLevels returns S_OK or an appropriate error result if the sublevels of a MIP-map texture are not successfully generated.

Remarks

After the user-mode display driver performs an operation that accesses only the top level of a MIP-map texture, the Microsoft Direct3D runtime calls the driver's GenerateMipSubLevels function to notify the driver to automatically regenerate the sublevels of the MIP-map texture by using a specific filter type.

Requirements

Target platform

Desktop

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dumddi.h (include D3dumddi.h)

See also

D3DDDIARG_GENERATEMIPSUBLEVELS
D3DDDI_DEVICEFUNCS

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft