SPIRV-Cross/shaders-msl/frag/buffer-read.frag
Chip Davis 7cb817e40e Add spvTexelBufferCoord for buffer image reads, too.
I should've caught this when I fixed this for writes.
2018-09-23 14:37:03 -05:00

11 lines
166 B
GLSL

#version 450
layout(rgba8, binding = 0) uniform readonly imageBuffer buf;
layout(location = 0) out vec4 FragColor;
void main()
{
FragColor = imageLoad(buf, 0);
}