Created
November 4, 2022 14:52
-
-
Save raphlinus/ffeff9634b02c59e1f3f788f529ade27 to your computer and use it in GitHub Desktop.
Trivial example of a shader which should fail uniformity analysis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@compute @workgroup_size(256) | |
fn main(@builtin(local_invocation_id) local_id: vec3<u32>) { | |
if local_id.x < 5u { | |
workgroupBarrier(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment