ID3D10Texture2D::Unmap method (d3d10.h)

Invalidate the pointer to the resource that was retrieved by ID3D10Texture2D::Map, and re-enable GPU access to the resource.

Syntax

void Unmap(
  [in] UINT Subresource
);

Parameters

[in] Subresource

Type: UINT

Subresource to be unmapped. See D3D10CalcSubresource for more details.

Return value

None

Remarks

A subresource must be mapped before Unmap is called.

Differences between Direct3D 9 and Direct3D 10:

Unmap in Direct3D 10 is analogous to resource Unlock in Direct3D 9.

Requirements

Requirement Value
Target Platform Windows
Header d3d10.h
Library D3D10.lib

See also

ID3D10Texture2D Interface