bgfx/3rdparty/spirv-cross/shaders-msl/frag/buffer-read-write.frag

13 lines
284 B
GLSL
Raw Normal View History

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
}