mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-05 06:03:34 +00:00
Update validation error for invalid uniform array element alignment. Update tests to either remove the @stride attribute or use a different element type. Bug: tint:1381 Change-Id: I50b52cd78a34d9cd162fa5f2171a5fd35dcf3b79 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/77560 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
9 lines
166 B
WebGPU Shading Language
9 lines
166 B
WebGPU Shading Language
struct Light {
|
|
position : vec3<f32>;
|
|
colour : vec3<f32>;
|
|
};
|
|
struct Lights {
|
|
light : array<Light>;
|
|
};
|
|
@group(0) @binding(1) var<storage, read> lights : Lights;
|