XGMemoryLayoutEngine::CreateMemoryLayout Method

Creates a new memory layout with a given name and size.

Syntax

public:
HRESULT CreateMemoryLayout(
         const WCHAR *strName,
         SIZE_T LayoutSizeBytes,
         XG_GPU_VIRTUAL_ADDRESS DesiredVirtualAddress,
         XGMemoryLayout **ppLayout
)  

Parameters

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.

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

XGMemoryLayoutEngine

XGMemoryLayoutEngine Members