Invalidate the pointer to the surface retrieved by IDXGISurface::Map and re-enable GPU access to the resource.
public:
HRESULT Unmap()
Type: HRESULTÂ
Returns S_OK if successful; otherwise, returns one of the error codes that are described in the DXGI_ERROR topic.
Header: Declared in d3d11_x.h (dxgi.h on other Windows platforms).
Library: Use d3d11_x.lib (dxgi.lib on other Windows platforms).