GLSL: XFB: more support for built-in block redeclarations with XFB.

- correct inheritence (or not) of the right XFB buffer
- compute implicit stride (fixes #1212)
- semantic check block-member redeclarations
- inherit stride from a member
This commit is contained in:
John Kessenich
2018-01-09 17:25:46 -07:00
parent 9c6f8cc29b
commit eb2c0c72bf
7 changed files with 195 additions and 8 deletions

18
Test/spv.xfb2.vert Normal file
View File

@@ -0,0 +1,18 @@
#version 450
layout (location = 0) in vec4 position;
layout (binding = 5) uniform ComponentsBlock
{
vec4 c1;
vec2 c2;
} components;
layout (xfb_buffer = 3, xfb_offset = 16) out gl_PerVertex
{
vec4 gl_Position;
};
void main()
{
gl_Position = position + components.c1 + vec4(components.c2, 0.0, 0.0);
}