Configures the graphics virtual memory system.
HRESULT D3DConfigureVirtualMemory(
D3D11X_VIRTUAL_MEMORY_CONFIGURATION *pVMConfiguration
)
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.
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.
This function configures the graphics virtual memory system. You must call this API before allocating any graphics memory or creating a Direct3D device.
Header: Declared in d3d11_x.h.
Library: Use d3d11_x.lib.