@group(1) @binding(0) var arg_0 : texture_depth_cube_array;

@group(1) @binding(1) var arg_1 : sampler;

fn textureSampleLevel_a12142() {
  var res : f32 = textureSampleLevel(arg_0, arg_1, vec3<f32>(), 1i, 1u);
}

@vertex
fn vertex_main() -> @builtin(position) vec4<f32> {
  textureSampleLevel_a12142();
  return vec4<f32>();
}

@fragment
fn fragment_main() {
  textureSampleLevel_a12142();
}

@compute @workgroup_size(1)
fn compute_main() {
  textureSampleLevel_a12142();
}
