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

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

fn textureSampleGrad_21402b() {
  var arg_2 = vec3<f32>();
  var arg_3 = vec3<f32>();
  var arg_4 = vec3<f32>();
  var res : vec4<f32> = textureSampleGrad(arg_0, arg_1, arg_2, arg_3, arg_4);
}

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

@stage(fragment)
fn fragment_main() {
  textureSampleGrad_21402b();
}

@stage(compute) @workgroup_size(1)
fn compute_main() {
  textureSampleGrad_21402b();
}
