mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-13 00:26:00 +00:00
Some now pass, some still fail. If we fix bugs and they begin to pass, we have a better chance of noticing and marking the issues as fixed. Change-Id: I7278f960967a570ccde8865dcf2aa580235559bf Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/54062 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: David Neto <dneto@google.com>
9 lines
202 B
WebGPU Shading Language
9 lines
202 B
WebGPU Shading Language
struct Light {
|
|
position : vec3<f32>;
|
|
colour : vec3<f32>;
|
|
};
|
|
[[block]] struct Lights {
|
|
light : [[stride(32)]] array<Light>;
|
|
};
|
|
[[set(0), binding(1)]] var<storage> lights : [[access(read)]] Lights;
|