mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-16 12:21:35 +00:00
It wasn't actually called, as array is parsed like any other templated type. Fixed: tint:1850 Change-Id: I2f1c8b8990cf7f3a5f8b09316e4dc539dbe6535a Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/121520 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
18 lines
454 B
WebGPU Shading Language
18 lines
454 B
WebGPU Shading Language
const slen = 4;
|
|
const ulen = 4u;
|
|
|
|
@fragment
|
|
fn main() {
|
|
var signed_literal : array<f32, 4>;
|
|
var unsigned_literal : array<f32, 4u>;
|
|
var signed_constant : array<f32, slen>;
|
|
var unsigned_constant : array<f32, ulen>;
|
|
var shr_const_expr : array<f32, 1<<2>;
|
|
|
|
// Ensure that the types are compatible.
|
|
unsigned_literal = signed_literal;
|
|
signed_constant = signed_literal;
|
|
unsigned_constant = signed_literal;
|
|
shr_const_expr = signed_literal;
|
|
}
|