mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-13 19:01:24 +00:00
Deprecate the old syntax. Migrate everything to the new syntax. Bug: tint:1382 Change-Id: Ide12b2e927b17dc93b9714c7049090864cc568d3 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/77260 Reviewed-by: James Price <jrprice@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com> Commit-Queue: David Neto <dneto@google.com>
15 lines
346 B
WebGPU Shading Language
15 lines
346 B
WebGPU Shading Language
let slen = 4;
|
|
let ulen = 4u;
|
|
|
|
@stage(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>;
|
|
|
|
// Ensure that the types are compatible.
|
|
signed_literal = unsigned_constant;
|
|
signed_constant = unsigned_literal;
|
|
}
|