We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description A compute shader may include discard statements. This is not allowed by the WGSL spec.
discard
Repro steps Invoke a compute shader like
@compute @workgroup_size(1) fn main(@builtin(global_invocation_id) global_id: vec3<u32>) { if global_id.x == 3u { discard; } }
Expected vs observed behavior
OpKill
Extra materials This can easily be reproduced by modifying the hello compute example
Platform Windows 10, RTX 2070. Reproduced for wgpu 0.15.1 and #df54bc4
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Description
A compute shader may include
discard
statements. This is not allowed by the WGSL spec.Repro steps
Invoke a compute shader like
Expected vs observed behavior
OpKill
. Device is lost upon dispatch.Extra materials
This can easily be reproduced by modifying the hello compute example
Platform
Windows 10, RTX 2070. Reproduced for wgpu 0.15.1 and #df54bc4
The text was updated successfully, but these errors were encountered: