mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-13 19:01:24 +00:00
The WorkgroupSize builtin decoration applies to a composite constant. Because WGSL does not yet support specializable constants for this, use the *default* values for that SPIR-V spec constant. Update end-to-end test expectations. Fixed: tint:503 Change-Id: I012b316d13544ab9282e3276b58906327adab133 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/41960 Auto-Submit: David Neto <dneto@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: David Neto <dneto@google.com> Reviewed-by: Alan Baker <alanbaker@google.com>
12 lines
344 B
WebGPU Shading Language
12 lines
344 B
WebGPU Shading Language
fn main_1() {
|
|
var m : mat3x3<f32> = mat3x3<f32>(vec3<f32>(0.0, 0.0, 0.0), vec3<f32>(0.0, 0.0, 0.0), vec3<f32>(0.0, 0.0, 0.0));
|
|
m = mat3x3<f32>(vec3<f32>(1.0, 2.0, 3.0), vec3<f32>(4.0, 5.0, 6.0), vec3<f32>(7.0, 8.0, 9.0));
|
|
m[1] = vec3<f32>(5.0, 5.0, 5.0);
|
|
return;
|
|
}
|
|
|
|
[[stage(compute), workgroup_size(1, 1, 1)]]
|
|
fn main() {
|
|
main_1();
|
|
}
|