1#version 450 2#extension GL_ARB_fragment_shader_interlock : enable 3 4layout(pixel_interlock_ordered) out; 5 6layout(pixel_interlock_ordered) in; 7layout(pixel_interlock_unordered) in; 8 9void foo() 10{ 11 beginInvocationInterlockARB(); 12 endInvocationInterlockARB(); 13} 14 15void main() { 16 17 endInvocationInterlockARB(); 18 beginInvocationInterlockARB(); 19 20 return; 21 22 endInvocationInterlockARB(); 23} 24