14 lines
260 B
GLSL
14 lines
260 B
GLSL
|
#version 450
|
||
|
|
||
|
layout(rgba32f) uniform writeonly imageBuffer RWTex;
|
||
|
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);
|
||
|
}
|
||
|
|