Check if shader compilation fails #16
Labels
No labels
breaking change
bug
CLI
documentation
duplicate
enhancement
invalid
performance
question
shader-library
UI/UX
unsure
waiting
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: ChaoticByte/Fragmented#16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For now it can only be binary failed/succeeded
Trying workaround https://forum.godotengine.org/t/how-to-detect-shader-compilation-errors-at-runtime/66687 by injecting a random
uniform bool <name>;
and - to prevent the uniform to get optimized away -<name>;
in the fragment shader code.If the uniform isn't found in
Filesystem.shader.get_shader_uniform_list()
, the shader most probably wasn't compiled correctly.-> This naive approach works, but without a detailed error message