Skip to main content

The "sys_shader_exists" Function


shadershaderThe shader to check


Checks 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.