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
|
|
@ -11,10 +11,10 @@ void main()
|
|||
{
|
||||
}
|
||||
|
||||
uniform float f; // ERROR, no location
|
||||
uniform float f; // ERROR, no location
|
||||
layout(location = 2) uniform float g;
|
||||
uniform sampler2D s1;
|
||||
layout(location = 3) uniform sampler2D s2;
|
||||
uniform sampler2D s1; // ERROR, no binding
|
||||
layout(location = 3) uniform sampler2D s2; // ERROR, no binding
|
||||
|
||||
void noise()
|
||||
{
|
||||
|
|
@ -24,4 +24,5 @@ void noise()
|
|||
noise4(1);
|
||||
}
|
||||
|
||||
uniform atomic_uint atomic; // ERROR, no binding
|
||||
layout(input_attachment_index = 1) uniform subpassInput sub; // ERROR, no inputs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue