#version 460
precision highp float;
precision highp int;

layout(binding = 0, r8) uniform highp image2D arg_0;
void textureStore_0ad124() {
  imageStore(arg_0, ivec2(1, 0), vec4(1.0f));
}
void main() {
  textureStore_0ad124();
}
#version 460

layout(binding = 0, r8) uniform highp image2D arg_0;
void textureStore_0ad124() {
  imageStore(arg_0, ivec2(1, 0), vec4(1.0f));
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
  textureStore_0ad124();
}
