Edit

Share via


PFND3D10DDI_RESOURCEUNMAP callback function (d3d10umddi.h)

The ResourceUnmap function unmaps a subresource of a resource.

Syntax

PFND3D10DDI_RESOURCEUNMAP Pfnd3d10ddiResourceunmap;

void Pfnd3d10ddiResourceunmap(
  D3D10DDI_HDEVICE unnamedParam1,
  D3D10DDI_HRESOURCE unnamedParam2,
  UINT unnamedParam3
)
{...}

Parameters

unnamedParam1

hDevice [in]

A handle to the display device (graphics context).

unnamedParam2

hResource [in]

A handle to the resource to unmap.

unnamedParam3

Subresource [in]

An index that indicates the subresource to unmap.

Return value

None

Remarks

The driver can use the pfnSetErrorCb callback function to set an error code.

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

Requirements

Requirement Value
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