@group(1) @binding(0) var arg_0 : texture_cube<f32>;

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

fn textureSampleLevel_c32df7() {
  var res : vec4<f32> = textureSampleLevel(arg_0, arg_1, vec3<f32>(), 1.0f);
}

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

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

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