Skip to main content
Invalidates the CPU pointer to the specified subresource in the resource.

Syntax

Parameters

Subresource
Type: UINT
Specifies the index of the subresource. pWrittenRange [in, optional]
Type: const D3D12_RANGE *
A pointer to a D3D12_RANGE structure that describes the range of memory to unmap. This indicates the region the CPU might have modified, and the coordinates are subresource-relative. A null pointer indicates the entire subresource might have been modified by the CPU. It is valid to specify the CPU didn’t write any data by passing a range where End is less than or equal to Begin. This parameter is only used by tooling, and not for correctness of the actual unmap operation.

Return value

Type: void None.

Remarks

Refer to the extensive Remarks and Examples for the Map method.

Requirements

Header: d3d12_xs.h or d3d12_x.h
Library: d3d12_xs.lib or d3d12_x.lib
Supported Platforms: XBOX Series consoles and XBOX One family

See Also

ID3D12Resource Map Subresources
Last modified on August 20, 2026