14 lines
306 B
WebGPU Shading Language
14 lines
306 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>;
|
||
|
signed_literal = unsigned_constant;
|
||
|
signed_constant = unsigned_literal;
|
||
|
}
|