SPV/OpenGL: Require locations on non-opaque uniform variables.
This commit is contained in:
parent
ab0086754e
commit
67eb497002
5 changed files with 26 additions and 13 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#version 330
|
||||
#version 450
|
||||
|
||||
#ifdef GL_SPIRV
|
||||
#error GL_SPIRV is set ( correct, not an error )
|
||||
|
|
@ -11,4 +11,9 @@ void main()
|
|||
{
|
||||
}
|
||||
|
||||
uniform float f; // ERROR, no location
|
||||
layout(location = 2) uniform float g;
|
||||
uniform sampler2D s1;
|
||||
layout(location = 3) uniform sampler2D s2;
|
||||
|
||||
layout(input_attachment_index = 1) uniform subpassInput sub; // ERROR, no inputs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue