mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-04 19:25:47 +00:00
https://dawn-review.googlesource.com/c/tint/+/60213 special cased ignore() to work around tint:1046. This fix produced bad output for structures when they are fully decomposed into ByteAddressBuffers, as the final HLSL references a structure that no longer exists. Fixes CTS tests, and tint->dawn roll. Change-Id: If6eab083c5f0bcca4a90c582df255b77e97a8e9f Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/60347 Commit-Queue: Ben Clayton <bclayton@google.com> Auto-Submit: Ben Clayton <bclayton@google.com> Kokoro: Ben Clayton <bclayton@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com>
13 lines
168 B
WebGPU Shading Language
13 lines
168 B
WebGPU Shading Language
[[block]]
|
|
struct S {
|
|
i : i32;
|
|
};
|
|
|
|
[[binding(0), group(0)]] var<uniform> u : S;
|
|
|
|
[[stage(compute), workgroup_size(1)]]
|
|
fn main() {
|
|
ignore(u);
|
|
ignore(u.i);
|
|
}
|