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

layout(binding = 0, r32ui) uniform highp uimage3D arg_0;
void textureStore_5246b4() {
  imageStore(arg_0, ivec3(uvec3(1u)), uvec4(1u));
}
void main() {
  textureStore_5246b4();
}
#version 310 es

layout(binding = 0, r32ui) uniform highp uimage3D arg_0;
void textureStore_5246b4() {
  imageStore(arg_0, ivec3(uvec3(1u)), uvec4(1u));
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
  textureStore_5246b4();
}
