mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-14 03:11:29 +00:00
Add a special-case for pointer-to-array types, where the * and the variable name need to be enclosed in parentheses in between the array element type and the size. Move the `const` qualifier to before the array size. Add E2E tests to cover all non-handle types used in various places. Fixed: tint:822 Change-Id: I93b7d6867f92397aa47838ab2c94530b6e634617 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/51823 Auto-Submit: James Price <jrprice@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com>
23 lines
428 B
WebGPU Shading Language
23 lines
428 B
WebGPU Shading Language
struct S {
|
|
};
|
|
|
|
fn foo(
|
|
param_bool : bool,
|
|
param_i32 : i32,
|
|
param_u32 : u32,
|
|
param_f32 : f32,
|
|
param_v2i32 : vec2<i32>,
|
|
param_v3u32 : vec3<u32>,
|
|
param_v4f32 : vec4<f32>,
|
|
param_m2x3 : mat2x3<f32>,
|
|
param_arr : array<f32, 4>,
|
|
param_struct : S,
|
|
param_ptr_f32 : ptr<function, f32>,
|
|
param_ptr_vec : ptr<function, vec4<f32>>,
|
|
param_ptr_arr : ptr<function, array<f32, 4>>,
|
|
) {}
|
|
|
|
[[stage(compute)]]
|
|
fn main() {
|
|
}
|