[Webkit-unassigned] [Bug 268425] New: [WGSL] override expressions as array lengths do not compile
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jan 30 16:39:22 PST 2024
https://bugs.webkit.org/show_bug.cgi?id=268425
Bug ID: 268425
Summary: [WGSL] override expressions as array lengths do not
compile
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebGPU
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mwyrzykowski at apple.com
Running the following CTS test:
https://gpuweb.github.io/cts/standalone/?q=webgpu:api,validation,compute_pipeline:overrides,workgroup_size,limits,workgroup_storage_size:isAsync=true
We see the error:
1 error generated while compiling the shader:
5:45: array count must evaluate to a constant integer expression or override variable
--------------- Shader source ---------------
override a: u32;
override b: u32;
var<workgroup> mat4_data: array<mat4x4<f32>, b>;
@compute @workgroup_size(1) fn main() {
_ = mat4_data[0];
}
--------------- end shader source ---------------
We can use function constants inside the generated metal shading language array length declaration.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240131/b1b051fa/attachment.htm>
More information about the webkit-unassigned
mailing list