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
Failed shader:
@compute @workgroup_size(256, 1, 1) fn A(index : i32) { } fn main(@builtin(local_invocation_id) LocalId : vec3<u32>, @builtin(global_invocation_id) GlobalId : vec3<u32>, @builtin(num_workgroups) NumWorkgroups : vec3<u32>) { var localId = LocalId; var globalId = GlobalId; var numWorkgroups = NumWorkgroups; A(getGlobalIndex());
naga output:
$ naga after.wgsl error: unknown local function `A` 鈹屸攢 after.wgsl:11:11 鈹?[0m 11 鈹?[0m A(getGlobalIndex()); 鈹?[0m ^ unknown local function Could not parse WGSL
This could be fixed after moved A() declaration before @compute @workgroup_size(256, 1, 1)
A()
@compute @workgroup_size(256, 1, 1)
The text was updated successfully, but these errors were encountered:
Dup with #2072
Sorry, something went wrong.
Thanks @haoyunfeix!
No branches or pull requests
Failed shader:
naga output:
This could be fixed after moved
A()
declaration before@compute @workgroup_size(256, 1, 1)
The text was updated successfully, but these errors were encountered: