You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add --allow-fragment-no-output compiler flag to bypass fragment shader validation
Implements a new compiler flag that allows fragment shaders with no output
operations to compile without errors. This addresses issue #284 where
fragment shaders optimized by DCE (Dead Code Elimination) would fail
validation even when the lack of output was intentional.
Changes:
- Add `allow_fragment_no_output` field to linker Options struct
- Add command-line flag parsing for `--allow-fragment-no-output`
- Skip fragment shader output validation when flag is enabled
- Update error message to include usage hint for the new flag
This flag is intended for testing scenarios and special use cases where
fragment shaders legitimately produce no output. The validation remains
active by default to catch unintentional issues.
0 commit comments