SPV: Add auto location mapping of non-opaque non-block uniform variables.
Fix #1019.
This commit is contained in:
parent
8268a35504
commit
82e95a3aa5
9 changed files with 93 additions and 12 deletions
15
Test/spv.looseUniformNoLoc.vert
Normal file
15
Test/spv.looseUniformNoLoc.vert
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue