2021-09-02 13:49:59 +00:00
|
|
|
let slen = 4;
|
|
|
|
let ulen = 4u;
|
|
|
|
|
2022-01-19 22:46:57 +00:00
|
|
|
@stage(fragment)
|
2021-09-02 13:49:59 +00:00
|
|
|
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;
|
|
|
|
}
|