[[group(1), binding(0)]] var arg_0 : texture_3d<u32>;

fn textureNumLevels_b4f5ea() {
  var res : i32 = textureNumLevels(arg_0);
}

[[stage(vertex)]]
fn vertex_main() {
  textureNumLevels_b4f5ea();
}

[[stage(fragment)]]
fn fragment_main() {
  textureNumLevels_b4f5ea();
}

[[stage(compute)]]
fn compute_main() {
  textureNumLevels_b4f5ea();
}
