mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-01 19:03:41 +00:00
And force shader code to always use LF endings. Post merge, there were a number of files that crept in with CRLF endings. Some Tint end-to-end tests take objection to CRLF endings. CRLF endings can be detected with: ``` git grep -I --files-with-matches --perl-regexp '\r' HEAD ``` And fixed with: ``` find . -type f -exec dos2unix {} \; ``` Bug: dawn:1339 Change-Id: Iee054bafd15875de744b86e28393cd8229bd3cfa Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/86140 Kokoro-Run: Ben Clayton <bclayton@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
22 lines
310 B
WebGPU Shading Language
22 lines
310 B
WebGPU Shading Language
struct Uniforms {
|
|
i : u32,
|
|
j : u32,
|
|
};
|
|
|
|
struct InnerS {
|
|
v : i32,
|
|
};
|
|
|
|
struct OuterS {
|
|
a1 : array<array<InnerS, 8>, 8>,
|
|
};
|
|
|
|
@group(1) @binding(4) var<uniform> uniforms : Uniforms;
|
|
|
|
@stage(compute) @workgroup_size(1)
|
|
fn main() {
|
|
var v : InnerS;
|
|
var s1 : OuterS;
|
|
s1.a1[uniforms.i][uniforms.j] = v;
|
|
}
|