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,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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue