PFND3D10DDI_RESOURCEUNMAP callback function

The ResourceUnmap function unmaps a subresource of a resource.

Syntax


PFND3D10DDI_RESOURCEUNMAP ResourceUnmap;

VOID APIENTRY ResourceUnmap(
  _In_ D3D10DDI_HDEVICE   hDevice,
  _In_ D3D10DDI_HRESOURCE hResource,
  _In_ UINT               Subresource
)
{ ... }

Parameters

hDevice [in]

A handle to the display device (graphics context).

hResource [in]

A handle to the resource to unmap.

Subresource [in]

An index that indicates the subresource to unmap.

Return value

None

The driver can use the pfnSetErrorCb callback function to set an error code. For more information about setting error codes, see the Remarks section.

Remarks

The driver can call pfnSetErrorCb to set the D3DDDIERR_DEVICEREMOVED error code; however, the driver is not required to set D3DDDIERR_DEVICEREMOVED if the device was removed. Calls to pfnSetErrorCb to set any other error code are critical.

Restrictions on input values

For Windows Display Driver Model (WDDM) 1.3 and later drivers, the Microsoft Direct3D runtime supplies a restricted set of input values used by this function. For a list of all restricted values, see Direct3D rendering performance improvements.

Requirements

Target platform

Version

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

Header

D3d10umddi.h (include D3d10umddi.h)

See also

D3D10DDI_DEVICEFUNCS
pfnSetErrorCb

 

 

Send comments about this topic to Microsoft

Show: