mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-09 14:45:58 +00:00
These have been deprecated, and their usages in Dawn, CTS and samples have been updated. Fixed: tint:846 Change-Id: I74b831fd5be2e7ca02e8208835eac8beddcef9af Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/54325 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com> Reviewed-by: James Price <jrprice@google.com>
12 lines
195 B
WebGPU Shading Language
12 lines
195 B
WebGPU Shading Language
struct Light {
|
|
position : vec3<f32>;
|
|
colour : vec3<f32>;
|
|
};
|
|
|
|
[[block]]
|
|
struct Lights {
|
|
light : [[stride(32)]] array<Light>;
|
|
};
|
|
|
|
[[group(0), binding(1)]] var<storage, read> lights : Lights;
|