2021-06-10 18:43:04 +00:00
|
|
|
intrinsics/gen/arrayLength/721c9d.wgsl:31:18 warning: use of deprecated intrinsic
|
|
|
|
var res: u32 = arrayLength(sb.arg_0);
|
|
|
|
^^^^^^^^^^^
|
|
|
|
|
2021-06-03 11:26:17 +00:00
|
|
|
[[block]]
|
|
|
|
struct SB {
|
|
|
|
arg_0 : array<i32>;
|
|
|
|
};
|
|
|
|
|
2021-06-04 20:41:47 +00:00
|
|
|
[[group(0), binding(0)]] var<storage, read> sb : SB;
|
2021-06-03 11:26:17 +00:00
|
|
|
|
|
|
|
fn arrayLength_721c9d() {
|
|
|
|
var res : u32 = arrayLength(sb.arg_0);
|
|
|
|
}
|
|
|
|
|
|
|
|
[[stage(vertex)]]
|
2021-06-04 17:31:48 +00:00
|
|
|
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
2021-06-03 11:26:17 +00:00
|
|
|
arrayLength_721c9d();
|
2021-06-04 17:31:48 +00:00
|
|
|
return vec4<f32>();
|
2021-06-03 11:26:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[[stage(fragment)]]
|
|
|
|
fn fragment_main() {
|
|
|
|
arrayLength_721c9d();
|
|
|
|
}
|
|
|
|
|
|
|
|
[[stage(compute)]]
|
|
|
|
fn compute_main() {
|
|
|
|
arrayLength_721c9d();
|
|
|
|
}
|