PFND3D12DDI_MAPHEAP - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// d3d12umddi.h

PFND3D12DDI_MAPHEAP Pfnd3d12ddiMapheap;

HRESULT Pfnd3d12ddiMapheap(
  [in]  D3D12DDI_HDEVICE unnamedParam1,
  [in]  D3D12DDI_HHEAP unnamedParam2,
  [out] VOID **unnamedParam3
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-d3d12umddi-pfnd3d12ddi_mapheap)

PFND3D12DDI_MAPHEAP callback function

Description

A client driver implements PFND3D12DDI_MAPHEAP to map a heap.

Parameters

unnamedParam1 [in]

hDisplayDevice: Handle to the display device (graphics context).

unnamedParam2 [in]

hHeap: Handle to a display device-managed heap that needs to be mapped.

unnamedParam3 [out]

ppData*: A pointer to the mapped heap data.

Return value

PFND3D12DDI_MAPHEAP returns S_OK on success. It should return an appropriate HRESULT error code on failure.

Prototype

//Declaration

PFND3D12DDI_MAPHEAP Pfnd3d12ddiMapheap;

// Definition

HRESULT Pfnd3d12ddiMapheap
(
    D3D12DDI_HDEVICE hDisplayDevice,
    D3D12DDI_HHEAP hHeap,
    VOID **ppData
)
{...}

PFND3D12DDI_MAPHEAP

Remarks

Heap data is typically accessible to the GPU only. PFND3D12DDI_MAPHEAP makes the heap data accessible to the CPU. The driver should map the heap data and return a CPU-accessible pointer in ppData.

See also

PFND3D12DDI_UNMAPHEAP