XGMemoryLayout::CreateMapping Method

Creates a new mapping with the given name.

Syntax

public:
HRESULT CreateMapping(
         const WCHAR *strName,
         XGMemoryLayoutMapping *pMapping,
         UINT32 AlignmentBytes
)  

Parameters

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.

Return value

Type: HRESULT 

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

Requirements

Header: Declared in xgmemory.h.

See also

XGMemoryLayout

XGMemoryLayout Members