SetShaderErrorMode

Description

Determines what AGK should do when it encounters an error when compiling a shader, or is told to load a shader that is not supported by the current device. The modes are:
0 = Report all compile errors and unsupported shaders as AGK errors
1 = Only report compile errors, unsupported shaders will fail silently
2 = Both compile errors and unsupported shaders will fail silently
If a shader fails to load silently then you can check if it was successful by using GetShaderExists with the corresponding ID.
Normal AGK errors such as missing shader files or using the wrong command for the type of shader you are loading will continue to report errors in the normal way regardless of the setting of shader error mode.

Definition

SetShaderErrorMode( mode )

Parameters