Creates a new memory layout with a given name and size.
public:
HRESULT CreateMemoryLayout(
const WCHAR *strName,
SIZE_T LayoutSizeBytes,
XG_GPU_VIRTUAL_ADDRESS DesiredVirtualAddress,
XGMemoryLayout **ppLayout
)
strName
Type: WCHAR *
[in] The name of the new memory layout.
LayoutSizeBytes
Type: SIZE_T
The size of the new memory layout.
DesiredVirtualAddress
Type: XG_GPU_VIRTUAL_ADDRESS
The virtual address to try to use (a UINT64). To automatically assign a virtual address, pass 0.
ppLayout
Type: XGMemoryLayout **
[out] The resulting new memory layout.
Type: HRESULT
S_OK, E_INVALIDARG, or E_OUTOFMEMORY, described in Direct3D 11 return codes.
Header: Declared in xgmemory.h.