D3DConfigureVirtualMemory

Configures the graphics virtual memory system.

Syntax

HRESULT D3DConfigureVirtualMemory(
         D3D11X_VIRTUAL_MEMORY_CONFIGURATION *pVMConfiguration
)  

Parameters

pVMConfiguration
Type: D3D11X_VIRTUAL_MEMORY_CONFIGURATION *

[in, out] Input and output parameters for virtual memory configuration, as a pointer to a D3D11X_VIRTUAL_MEMORY_CONFIGURATION structure.

Return value

Type: HRESULT 

This method returns one of the Direct3D 11 return codes.

Return value Meaning
S_OK The virtual memory system was configured with the given configuration.
E_FAIL The virtual memory system was not configured successfully (that is, one or more graphics allocations were created before calling this API).
E_INVALIDARG pVMConfiguration is NULL.

Even if D3DConfigureVirtualMemory returns E_FAIL, the output parameters of pVMConfiguration will be written.

Remarks

This function configures the graphics virtual memory system. You must call this API before allocating any graphics memory or creating a Direct3D device.

Requirements

Header: Declared in d3d11_x.h.

Library: Use d3d11_x.lib.