ResetShaderCache

Resets the content in a disk-based shader cache on a GPU.

Syntax

Copied!

ADLX_RESULT     ResetShaderCache ()

Parameters

N/A

Return Value

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

If the shader cache is not successfully reset, 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 the contents of the disk-based shader cache.

Requirements

Header

include “I3DSettings.h”

Minimum version

1.0