Unmaps ESRAM memory from virtual addresses.
Important This API will fail if called on Xbox One X hardware.
HRESULT D3DUnmapEsramMemory(
UINT Flags,
VOID *pVirtualAddress,
UINT NumPages
)
Flags
Type: UINT
Flags to control mapping ESRAM memory. One of the D3D11_MAP_ESRAM_FLAG enumeration constants.
pVirtualAddress
Type: VOID *
The virtual address that ESRAM is mapped to. The virtual address must be aligned to the requested page size (either 64KB or 4MB).
NumPages
Type: UINT
The number of ESRAM pages to unmap during this operation. Up to 512 pages can be mapped with 64KB pages, and up to 8 pages can be mapped with 4MB pages. The size of the mapping is NumPages multiplied by the page size specified by Flags.
Type: HRESULT
| Value | Description |
|---|---|
| S_OK | Memory was successfully unmapped. |
| E_INVALIDARG | One or more arguments were invalid. |
Header: Declared in d3d11_x.h (d3d11_1.h on other Windows platforms).
Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).