Bug 265895
Summary: | [WGSL] Error compiling WGSL shader which uses override as an array size | ||
---|---|---|---|
Product: | WebKit | Reporter: | Mike Wyrzykowski <mwyrzykowski> |
Component: | WebGPU | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Mike Wyrzykowski
The following compute shader:
override a: u32;
override b: u32;
var<workgroup> vec4_data: array<vec4<f32>, a>;
@compute @workgroup_size(1) fn main() {
_ = vec4_data[0];
}
generates the error:
1 error generated while compiling the shader:
4:45: array count must evaluate to a constant integer expression or override variable
it would seem that 'a' should be able to be used in the array declaration.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/119207413>
Mike Wyrzykowski
This was observed running https://gpuweb.github.io/cts/standalone/?q=webgpu:api,validation,compute_pipeline:overrides,workgroup_size,limits,workgroup_storage_size:isAsync=false