PFND3D10DDI_RESOURCEUNMAP callback function

The ResourceUnmap function unmaps a subresource of a resource.

Syntax

PFND3D10DDI_RESOURCEUNMAP Pfnd3d10ddiResourceunmap;

void Pfnd3d10ddiResourceunmap(
  D3D10DDI_HDEVICE Arg1,
  D3D10DDI_HRESOURCE Arg2,
  UINT Arg3
)
{...}

Parameters

Arg1

hDevice [in]

A handle to the display device (graphics context).

Arg2

hResource [in]

A handle to the resource to unmap.

Arg3

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](https://docs.microsoft.com/windows-hardware/drivers/display/direct3d-rendering-performance-improvements).

Requirements

   
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Desktop
Header d3d10umddi.h (include D3d10umddi.h)

See Also

D3D10DDI_DEVICEFUNCS

pfnSetErrorCb