ID3D12Resource::Unmap method

Invalidates the CPU pointer to the specified subresource in the resource. Unmap also flushes the CPU cache, when necessary, so that GPU reads to this address reflect any modifications made by the CPU.

Syntax

void Unmap(
  UINT              Subresource,
  const D3D12_RANGE *pWrittenRange
);

Parameters

Subresource

Type: UINT

Specifies the index of the subresource.

pWrittenRange

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.

Return Value

This method does not return a value.

Remarks

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

Requirements

   
Target Platform Windows
Header d3d12.h
Library D3D12.lib
DLL D3D12.dll

See Also

ID3D12Resource

Map

Subresources