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

layout(binding = 0, r32f) uniform highp image3D arg_0;
void textureStore_5ec6b2() {
  uvec3 arg_1 = uvec3(1u);
  vec4 arg_2 = vec4(1.0f);
  vec4 v = arg_2;
  imageStore(arg_0, ivec3(arg_1), v);
}
void main() {
  textureStore_5ec6b2();
}
#version 310 es

layout(binding = 0, r32f) uniform highp image3D arg_0;
void textureStore_5ec6b2() {
  uvec3 arg_1 = uvec3(1u);
  vec4 arg_2 = vec4(1.0f);
  vec4 v = arg_2;
  imageStore(arg_0, ivec3(arg_1), v);
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
  textureStore_5ec6b2();
}
