XGMemoryLayout::Reset Method

Resets the layout; decommits all pages from the virtual address range, returns all ESRAM and system memory pages to the free lists, and invalidates all mappings made upon this layout.

Syntax

public:
HRESULT Reset()  

Return value

Type: HRESULT 

S_OK, E_INVALIDARG, or E_OUTOFMEMORY, described in Direct3D 11 return codes.

Remarks

Before calling Reset, check to make sure that the layout is not in use by the GPU.

Requirements

Header: Declared in xgmemory.h.

See also

XGMemoryLayout

XGMemoryLayout Members