SKIP: FAILED



Validation Failure:
#include <metal_stdlib>

using namespace metal;
void textureStore_f8dead() {
  arg_0.write(uint4(), int3());
}

vertex void vertex_main() {
  textureStore_f8dead();
  return;
}

fragment void fragment_main() {
  textureStore_f8dead();
  return;
}

kernel void compute_main() {
  textureStore_f8dead();
  return;
}


tint_Agnpo0.metal:5:3: error: use of undeclared identifier 'arg_0'
  arg_0.write(uint4(), int3());
  ^
1 error generated.
