GLSL/SPV: Fix #1196: Require resources to have layout(binding=X).
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
layout(constant_id = 3) const int a = 2;
|
||||
layout(location = 2) uniform float f;
|
||||
layout(location = 4) uniform sampler2D s1;
|
||||
uniform sampler2D s2;
|
||||
layout(location = 4, binding = 1) uniform sampler2D s1;
|
||||
layout(binding = 2) uniform sampler2D s2;
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user