Every shader asset is checked as you type, and Check (⌥⇧K) runs it at once. Problems are underlined in the code (point at the line for the message) and listed under it; click one to go there.
It finds what stops a shader on one of GameMaker's runtimes:
- Reserved words. GMRT turns GameMaker's GLSL ES into desktop GLSL 3.30, where words such as
shared,sample,input,output,filter,common,active,partition,half,fixed,uintandtexturecan't be names. - GLSL ES 1.00 rules (GMS2, phones and HTML5): no
intwhere afloatis wanted (1.0, not1), no%or bit operators, noround()ortexture(), loops with a constant count, no#versionline. - How the two files fit: varyings and uniforms that don't match between the vertex and fragment shader.
- Device differences (warnings): derivatives and
texture2DLodin fragment shaders need extensions on phones; big constants lose precision atmediump; HLSL keywords trip GameMaker's Windows export.
Every shader in the library passes it, and each was compiled by GameMaker's own tools for GMS2 (Mac), GLSL ES and GMRT.
Related topics
Keys are shown as on the Mac: ⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift. Studio for Windows shows its own keys beside each menu item.