Support GL_ARB_fragment_shader_interlock

This commit is contained in:
Jeff Bolz
2019-06-03 11:33:50 -05:00
parent a549bb8175
commit c6f0ce8dbc
19 changed files with 336 additions and 5 deletions

20
Test/spv.fsi.frag Normal file
View File

@@ -0,0 +1,20 @@
#version 450
#extension GL_ARB_fragment_shader_interlock : enable
layout(set = 0, binding = 0) coherent buffer B1 {
layout(offset = 0) int x;
} b1;
layout(set = 0, binding = 1, rgba32f) coherent uniform image2D im;
layout(sample_interlock_ordered) in;
void main() {
beginInvocationInterlockARB();
b1.x = 1;
imageStore(im, ivec2(0,0), vec4(0));
endInvocationInterlockARB();
}