XGMemoryLayout::MapSimple Method

Maps pages using a simple arrangement of ESRAM pages followed by system memory pages.

Syntax

public:
HRESULT MapSimple(
         XGMemoryLayoutMapping *pMapping,
         UINT32 PageCount,
         UINT32 EsramPageCount
)  

Parameters

pMapping
Type: XGMemoryLayoutMapping *

[in, out] The updated mapping result, as a pointer to an XGMemoryLayoutMapping structure.

PageCount
Type: UINT32 

The total number of pages, including system pages and ESRAM pages.

If PageCount is XG_ALL_REMAINING_PAGES, XGMemoryLayout::GetPageCountRemaining is substituted as the PageCount.

EsramPageCount
Type: UINT32 

The number of ESRAM pages.

If EsramPageCount is XG_ALL_REMAINING_PAGES, XGMemoryLayout::GetFreeEsramPageCount is substituted as the EsramPageCount.

Return value

Type: HRESULT 

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

Remarks

This method maps pages using a simple arrangement of EsramPageCount ESRAM pages followed by (PageCount - EsramPageCount) system memory pages.

Requirements

Header: Declared in xgmemory.h.

See also

XGMemoryLayout

XGMemoryLayout Members