Creates a new mapping with the given name.
public:
HRESULT CreateMapping(
const WCHAR *strName,
XGMemoryLayoutMapping *pMapping,
UINT32 AlignmentBytes
)
strName
Type: WCHAR *
[in] The name of the new mapping.
pMapping
Type: XGMemoryLayoutMapping *
[out] The new mapping, as a pointer to a XGMemoryLayoutMapping structure.
AlignmentBytes
Type: UINT32
[in] The alignment of the mapping’s virtual address in bytes. Specify 0 for the default alignment of XG_GPU_PAGE_SIZE_BYTES.
Type: HRESULT
S_OK, E_INVALIDARG, or E_OUTOFMEMORY, described in Direct3D 11 return codes.
Header: Declared in xgmemory.h.