XGMemoryLayout::GetEsramPageRanges Method

Returns a set of page ranges within the mapping that are mapped to ESRAM pages.

Syntax

public:
HRESULT GetEsramPageRanges(
         const XGMemoryLayoutMapping *pMapping,
         XGMemoryPageRange *pRanges,
         UINT32 *pRangeCount
)  

Parameters

pMapping
Type: XGMemoryLayoutMapping *

[in] The mapping, as a pointer to a XGMemoryLayoutMapping structure.

pRanges
Type: XGMemoryPageRange *

[out] An array of XGMemoryPageRange structures.

pRangeCount
Type: UINT32 *

[in, out] When calling this method, pass-in a pointer to the number of range structs in the pRanges array. After the call returns, this is a pointer to the number of page ranges with valid contents that were output.

Return value

Type: HRESULT 

S_OK, E_INVALIDARG, or E_OUTOFMEMORY, described in Direct3D 11 return codes. If the page range array is of insufficient size to describe all of the ESRAM ranges, this method returns E_INVALIDARG.

Requirements

Header: Declared in xgmemory.h.

See also

XGMemoryLayout

XGMemoryLayout Members