third_party/spirv-cross/shaders-msl/frag/buffer-read-write.texture-buffer-native.msl21.frag
raw| 1 | #version 450 |
| 2 | |
| 3 | layout(rgba8, binding = 0) uniform readonly imageBuffer buf; |
| 4 | layout(rgba8, binding = 1) uniform writeonly imageBuffer bufOut; |
| 5 | |
| 6 | layout(location = 0) out vec4 FragColor; |
| 7 | |
| 8 | void main() |
| 9 | { |
| 10 | FragColor = imageLoad(buf, 0); |
| 11 | imageStore(bufOut, int(gl_FragCoord.x), FragColor); |
| 12 | } |