SPV/OpenGL: Require locations on non-opaque uniform variables.

This commit is contained in:
John Kessenich
2017-07-21 13:36:33 -06:00
parent ab0086754e
commit 67eb497002
5 changed files with 26 additions and 13 deletions

View File

@@ -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()
{