Skip to content

Validate standalone GLSL with CMake 4.5 custom rule templates - #2

Merged
godofecht merged 1 commit into
mainfrom
feat/cmake45-shader-validation
Oct 21, 2026
Merged

godofecht merged 1 commit into
mainfrom
feat/cmake45-shader-validation

Conversation

@godofecht

Copy link
Copy Markdown
Owner

Adds a real build-time use for the new CMake 4.5 add_custom_rule feature: seven complete standalone GLSL headers are each wrapped into an OpenGL 3.3 fragment shader, compiled/validated with glslangValidator, and checked for source preservation. New mode is -DSHADERLIB_USE_CUSTOM_RULES=ON; legacy CMake custom commands remain the default for 3.20+. Uses a single reusable rule attached to a typed file set. No changes to original GLSL or the 78-shader Shadertoy archive. The known-empty DynamicColourGradient.h stays intentionally excluded. GitHub Actions tests both 4.5 and legacy modes.

@godofecht
godofecht merged commit 232c34f into main Oct 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant