Revert "Revert "GL_ext_vulkan_glsl_relaxed extension support, and cross stage aware IO mapper""

This commit is contained in:
greg-lunarg 2021-03-15 11:26:11 -06:00 committed by GitHub
parent a36d91e5ac
commit 4e064eef46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
43 changed files with 6707 additions and 111 deletions

View file

@ -0,0 +1,19 @@
#version 460
// default uniforms will be gathered into a uniform block
// final global block will merge uniforms from all linked files
uniform vec4 a; // declared in both stages
uniform vec2 b2; // declaration order swapped in other stage
uniform vec2 b1;
uniform vec4 c2; // not delcared in other file
uniform vec4 d;
layout (binding = 0) uniform atomic_uint counter3;
layout (binding = 0) uniform atomic_uint counter2;
vec4 foo() {
uint j = atomicCounterIncrement(counter2) + atomicCounterDecrement(counter3);
vec4 v = a + vec4(b1.x, b1.y, b2.x, b2.y) + c2 + d;
return float(j) * v;
}