UID | title | description | ms.date | keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.lib | req.dll | req.irql | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | targetos | tech.root | ms.custom | f1_keywords | topic_type | api_type | api_location | api_name | dev_langs | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NC:d3d12umddi.PFND3D12DDI_MAPHEAP |
PFND3D12DDI_MAPHEAP (d3d12umddi.h) |
A client driver implements PFND3D12DDI_MAPHEAP to map a heap. |
08/21/2020 |
|
d3d12umddi.h |
Windows |
display |
RS5 |
|
|
|
|
|
|
A client driver implements PFND3D12DDI_MAPHEAP to map a heap.
hDisplayDevice: Handle to the display device (graphics context).
hHeap: Handle to a display device-managed heap that needs to be mapped.
ppData*: A pointer to the mapped heap data.
PFND3D12DDI_MAPHEAP returns S_OK on success. It should return an appropriate HRESULT error code on failure.
//Declaration
PFND3D12DDI_MAPHEAP Pfnd3d12ddiMapheap;
// Definition
HRESULT Pfnd3d12ddiMapheap
(
D3D12DDI_HDEVICE hDisplayDevice,
D3D12DDI_HHEAP hHeap,
VOID **ppData
)
{...}
PFND3D12DDI_MAPHEAP
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.