[[group(1), binding(0)]] var arg_0 : texture_depth_cube_array;

fn textureDimensions_bdf2ee() {
  var res : vec3<i32> = textureDimensions(arg_0);
}

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

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

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