The "sys_shader_exists" Function
#
SyntaxArgument | Type | Description |
---|---|---|
shader | shader | The shader to check |
#
DescriptionChecks to see whether the given shader likely exists and returns true or false. If the shader asset exists, but was not successfully compiled due to errors or incompatibility with the current platform, false will also be returned.
Unfortunately, there is no universal way to determine whether a shader exists in GameMaker, so this script is tailored to run checks consequential to VNgen only.
See Shaders for a list of included shaders.