SPIRV-Cross/reference/opt/shaders/asm/frag/sampler-buffer-without-sampler.asm.frag
2018-03-12 15:11:55 +01:00

14 lines
293 B
GLSL

#version 450
layout(binding = 0, rgba32f) uniform writeonly imageBuffer RWTex;
layout(binding = 1) uniform samplerBuffer Tex;
layout(location = 0) out vec4 _entryPointOutput;
void main()
{
imageStore(RWTex, 20, vec4(1.0, 2.0, 3.0, 4.0));
_entryPointOutput = texelFetch(Tex, 10);
}