@group(1) @binding(0) var arg_0 : texture_1d<i32>;

fn textureDimensions_52045c() {
  var arg_1 = 0;
  var res : i32 = textureDimensions(arg_0, arg_1);
}

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

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

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