31 lines
578 B
WebGPU Shading Language
31 lines
578 B
WebGPU Shading Language
intrinsics/gen/arrayLength/b083be.wgsl:31:18 warning: use of deprecated intrinsic
|
|
var res: u32 = arrayLength(sb.arg_0);
|
|
^^^^^^^^^^^
|
|
|
|
[[block]]
|
|
struct SB {
|
|
arg_0 : array<f32>;
|
|
};
|
|
|
|
[[group(0), binding(0)]] var<storage, read> sb : SB;
|
|
|
|
fn arrayLength_b083be() {
|
|
var res : u32 = arrayLength(sb.arg_0);
|
|
}
|
|
|
|
[[stage(vertex)]]
|
|
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
|
arrayLength_b083be();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
[[stage(fragment)]]
|
|
fn fragment_main() {
|
|
arrayLength_b083be();
|
|
}
|
|
|
|
[[stage(compute)]]
|
|
fn compute_main() {
|
|
arrayLength_b083be();
|
|
}
|