Copies a source mapping into a destination mapping, with the optional ability to replace ESRAM page mappings in the source mapping with newly allocated system memory pages in the destination mapping.
public:
HRESULT CopyMapping(
XGMemoryLayoutMapping *pDestMapping,
const XGMemoryLayoutMapping *pSourceMapping,
UINT32 Flags
)
pDestMapping
Type: XGMemoryLayoutMapping *
[in] The destination mapping, as a pointer to a XGMemoryLayoutMapping structure.
pSourceMapping
Type: XGMemoryLayoutMapping *
[in] The source mapping, as a pointer to a XGMemoryLayoutMapping structure.
Flags
Type: UINT32
Flags to control this method, such as whether to replace the mapping of ESRAM pages, and whether to replace the mapping of system memory pages. A bitwise-OR’d combination of XG_COPY_MAPPING_FLAGS enumeration constants.
Type: HRESULT
S_OK, E_INVALIDARG, or E_OUTOFMEMORY, described in Direct3D 11 return codes.
Header: Declared in xgmemory.h.