mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-30 22:51:06 +00:00
8297936dd6
The memory model group agreed to these definitions for how to map GLSL barrier, memoryBarrier, etc. With HLSL following suit.
15 lines
242 B
GLSL
15 lines
242 B
GLSL
#version 450
|
|
|
|
layout(location=0) out vec4 c0;
|
|
layout(location=1) out vec4 c1;
|
|
|
|
void main()
|
|
{
|
|
c0 = vec4(1.0);
|
|
memoryBarrier();
|
|
c1 = vec4(1.0);
|
|
memoryBarrierBuffer();
|
|
++c0;
|
|
memoryBarrierImage();
|
|
++c0;
|
|
} |