Skip to content

GetDefaultOption

Navigation: ADLX SDK ReferencesADLX InterfacesSystemIADLXVariableGraphicsMemory

Syntax

ADLX_RESULT    GetDefaultOption (IADLXVariableGraphicsMemoryOption** ppOption)

Parameters

#DirectionNameTypeDescription
1.[out]ppOptionIADLXVariableGraphicsMemoryOptionThe address of a pointer to the returned interface. If the interface is not successfully returned, the method sets the dereferenced address *ppOption to nullptr.

Return Value

If the default Variable Graphics Memory option is successfully returned, ADLX_OK is returned.

If the default Variable Graphics Memory option is not successfully returned, an error code is returned.

Refer to ADLX_RESULT for success codes and error codes.

Remarks

The returned interface must be discarded with Release when it is no longer needed.

Additional Info

In C++, when using ADLX interfaces as smart pointers, there is no need to call Release because smart pointers call it in their internal implementation.

Variable Graphics Memory optimizes memory usage for best performance based on the selected profile by converting up to 75% of the system RAM to dedicated graphics memory (vRAM).

Requirements

Headerinclude “ISystem3.h”
Minimum version1.5

See Also: Release, IADLXVariableGraphicsMemoryOption, ADLX Enums