workgroup_size: expected 32-bit signed integer literal error #2430
Labels
area: front-end
Input formats for conversion
kind: bug
Something isn't working
lang: WGSL
WebGPU shading language
Milestone
Description
The following compute shader code works in WebGPU:
But wgpu gives error:
However, from WGSL spec:
workgroup_size: One, two or three parameters.
Each parameter must be a const-expression or an override-expression. All parameters must be the same type, either i32 or u32.
It is clear that workgroup_size can be a const expression. Why wgpu requires it to be a 32-bit signed integer literal?
Platform
Windows 11, RTX 3060
The text was updated successfully, but these errors were encountered: