GLSL/SPV: Fix #1196: Require resources to have layout(binding=X).
This commit is contained in:
parent
2d9973de0e
commit
9c9c4e90df
20 changed files with 114 additions and 64 deletions
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue