2022-06-29 00:55:36 +00:00
|
|
|
const slen = 4;
|
2021-09-02 13:49:59 +00:00
|
|
|
|
2022-06-29 00:55:36 +00:00
|
|
|
const ulen = 4u;
|
2021-09-02 13:49:59 +00:00
|
|
|
|
2022-06-07 13:55:34 +00:00
|
|
|
@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>;
|
2023-02-24 21:02:40 +00:00
|
|
|
var shr_const_expr : array<f32, (1 << 2)>;
|
|
|
|
unsigned_literal = signed_literal;
|
|
|
|
signed_constant = signed_literal;
|
|
|
|
unsigned_constant = signed_literal;
|
|
|
|
shr_const_expr = signed_literal;
|
2021-09-02 13:49:59 +00:00
|
|
|
}
|