2018-09-23 19:35:25 +00:00
|
|
|
#version 450
|
|
|
|
|
|
|
|
layout(rgba8, binding = 0) uniform readonly imageBuffer buf;
|
2019-04-23 10:17:21 +00:00
|
|
|
layout(rgba8, binding = 1) uniform writeonly imageBuffer bufOut;
|
2018-09-23 19:35:25 +00:00
|
|
|
|
|
|
|
layout(location = 0) out vec4 FragColor;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
FragColor = imageLoad(buf, 0);
|
2019-04-23 10:17:21 +00:00
|
|
|
imageStore(bufOut, int(gl_FragCoord.x), FragColor);
|
2018-09-23 19:35:25 +00:00
|
|
|
}
|