2016-03-02 17:09:16 +00:00
|
|
|
#version 310 es
|
|
|
|
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
|
|
|
2017-08-29 13:52:59 +00:00
|
|
|
layout(binding = 0, rgba8) uniform readonly mediump image2D uImageIn;
|
|
|
|
layout(binding = 1, rgba8) uniform writeonly mediump image2D uImageOut;
|
2016-03-02 17:09:16 +00:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2016-12-05 09:22:54 +00:00
|
|
|
vec4 v = imageLoad(uImageIn, ivec2(gl_GlobalInvocationID.xy) + imageSize(uImageIn));
|
2016-03-02 17:09:16 +00:00
|
|
|
imageStore(uImageOut, ivec2(gl_GlobalInvocationID.xy), v);
|
|
|
|
}
|
|
|
|
|