IsSupported

Checks if resetting the shader cache of a GPU is supported.

Syntax

Copied!

ADLX_RESULT     IsSupported (adlx_bool* supported)

Parameters

  1. [out] supported adlx_bool* The pointer to a variable where the state of shader cache reset is returned. The variable is true if shader cache reset is supported. The variable is false if shader cache reset is not supported.

Return Value

If the state of shader cache reset is successfully returned, ADLX_OK is returned.

If the state of shader cache reset is not successfully returned, an error code is returned.

Refer to ADLX_RESULT for success codes and error codes.

Additional Info

The shader cache stores frequently used in-game shaders to reduce loading time and CPU usage. Resetting the shader cache clears contents of the disk-based shader cache.

Requirements

Header

include “I3DSettings.h”

Minimum version

1.0