SPV: Add auto location mapping of non-opaque non-block uniform variables.

Fix #1019.
This commit is contained in:
John Kessenich
2017-08-26 15:47:25 -06:00
parent 8268a35504
commit 82e95a3aa5
9 changed files with 93 additions and 12 deletions

View File

@@ -0,0 +1,15 @@
#version 450 core
layout(location = 0)
in vec4 foo;
layout(location = 0)
out vec4 bar;
uniform vec4 uv;
void main()
{
bar = foo;
gl_Position = foo;
}