SPV/OpenGL: Require locations on non-opaque uniform variables.
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
#version 450
|
||||
|
||||
layout(constant_id = 3) const int a = 2;
|
||||
|
||||
uniform float f;
|
||||
layout(location = 2) uniform float f;
|
||||
layout(location = 4) uniform sampler2D s1;
|
||||
uniform sampler2D s2;
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user