define the shader stage in shaders built by ShaderLoader #50

Merged
embeddedt merged 2 commits from rdh/celeritas:shader-stage-defines into stonecutter 2026-11-17 19:28:21 -05:00
Collaborator

so common/included shader files can gate specific sections of code

so common/included shader files can gate specific sections of code
rdh added 1 commit 2026-11-17 03:16:33 -05:00
@@ -38,0 +38,4 @@
return new GlShader(type, name, downgradeIfNeeded(type, defineStage(type, source)));
}
private static String defineStage(ShaderType type, String source) {
Owner

Can it not be injected into the provided ShaderConstants?

Can it not be injected into the provided `ShaderConstants`?
embeddedt marked this conversation as resolved
rdh added 1 commit 2026-11-17 19:02:43 -05:00
embeddedt merged commit 5b0cb54a89 into stonecutter 2026-11-17 19:28:21 -05:00
embeddedt deleted branch shader-stage-defines 2026-11-17 19:28:21 -05:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: embeddedt/celeritas#50