PFND3D12DDI_CREATEHEAPANDRESOURCE_0088 callback function (d3d12umddi.h)

A user-mode display driver's PFND3D12DDI_CREATEHEAPANDRESOURCE_0088 function simultaneously creates a heap and resource.

Syntax

PFND3D12DDI_CREATEHEAPANDRESOURCE_0088 Pfnd3d12ddiCreateheapandresource0088;

HRESULT Pfnd3d12ddiCreateheapandresource0088(
  [in]           D3D12DDI_HDEVICE unnamedParam1,
  [in, optional] const D3D12DDIARG_CREATEHEAP_0001 *unnamedParam2,
  [in]           D3D12DDI_HHEAP unnamedParam3,
  [in]           D3D12DDI_HRTRESOURCE unnamedParam4,
  [in, optional] const D3D12DDIARG_CREATERESOURCE_0088 *unnamedParam5,
  [in, optional] const D3D12DDI_CLEAR_VALUES *unnamedParam6,
                 D3D12DDI_HPROTECTEDRESOURCESESSION_0030 unnamedParam7,
                 D3D12DDI_HRESOURCE unnamedParam8
)
{...}

Parameters

[in] unnamedParam1

A D3D12DDI_HDEVICE handle to the display device (graphics context).

[in, optional] unnamedParam2

A D3D12DDIARG_CREATEHEAP_0001 structure containing the arguments used to create a heap.

[in] unnamedParam3

The D3D12DDI_HHEAP handle to a heap.

[in] unnamedParam4

The D3D12DDI_HRTRESOURCE handle of the resource for the driver to use when it calls back into the runtime.

[in, optional] unnamedParam5

Pointer to a D3D12DDIARG_CREATERESOURCE_0088 structure with arguments used to create a resource.

[in, optional] unnamedParam6

Pointer to a D3D12DDI_CLEAR_VALUES structure with values used to optimize clear operations for the resource.

unnamedParam7

A D3D12DDI_HPROTECTEDRESOURCESESSION_0030 handle to the protected resource session to use for the resource being created. Zero indicates unprotected resources. See the Protected Resources Specification for more information.

unnamedParam8

The D3D12DDI_HRESOURCE handle to the hardware resource.

Return value

If this callback function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 11 (WDDM 3.0)
Header d3d12umddi.h

See also

D3D12DDIARG_CREATERESOURCE_0088

D3D12DDI_CLEAR_VALUES

PFND3D12DDI_CALCPRIVATEHEAPANDRESOURCESIZES_0088