#version 310 es
precision highp float;
precision highp int;

layout(binding = 0, r32i) uniform highp writeonly iimage2DArray arg_0;
void textureStore_9938b7() {
  imageStore(arg_0, ivec3(ivec2(1), int(1u)), ivec4(1));
}
void main() {
  textureStore_9938b7();
}
#version 310 es

layout(binding = 0, r32i) uniform highp writeonly iimage2DArray arg_0;
void textureStore_9938b7() {
  imageStore(arg_0, ivec3(ivec2(1), int(1u)), ivec4(1));
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
  textureStore_9938b7();
}
