SetEnabled 

Sets morphological anti-aliasing to enabled or disabled state on a GPU.

Syntax 

ADLX_RESULT     SetEnabled (adlx_bool enable)

Parameters 

  1. [in] enable adlx_bool The new morphological anti-aliasing state. Set true to enable morphological anti-aliasing. Set false to disable morphological anti-aliasing.

Return Value 

If the state of morphological anti-aliasing is successfully set, ADLX_OK is returned.

If the state of morphological anti-aliasing is not successfully set, an error code is returned.

Refer to ADLX_RESULT for success codes and error codes.

Additional Info 

Morphological anti-aliasing is an edge-smoothing technique with minimal performance overhead.

The applications must run exclusively in full-screen mode.

Not applicable to DirectX® 12 and Vulkan® applications.

Note : When morphological anti-aliasing is enabled, the anti-aliasing mode must either be AA_MODE_ENHANCE_APP_SETTINGS or AA_MODE_OVERRIDE_APP_SETTINGS, as returned by GetMode .

Requirements 

Header

include “I3DSettings.h”

Minimum version

1.0