2019-01-10 06:23:47 +03:00
|
|
|
#version 450
|
|
|
|
|
|
|
|
layout(rgba8, binding = 0) uniform readonly imageBuffer buf;
|
2019-04-28 00:14:44 +03:00
|
|
|
layout(rgba8, binding = 1) uniform writeonly imageBuffer bufOut;
|
2019-01-10 06:23:47 +03:00
|
|
|
|
|
|
|
layout(location = 0) out vec4 FragColor;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
FragColor = imageLoad(buf, 0);
|
2019-04-28 00:14:44 +03:00
|
|
|
imageStore(bufOut, int(gl_FragCoord.x), FragColor);
|
2019-01-10 06:23:47 +03:00
|
|
|
}
|