GLSL/SPV: Fix #1196: Require resources to have layout(binding=X).

This commit is contained in:
John Kessenich
2018-02-21 18:19:49 -07:00
parent 2d9973de0e
commit 9c9c4e90df
20 changed files with 114 additions and 64 deletions

View File

@@ -1,9 +1,9 @@
#version 450
uniform sampler s;
uniform sampler sA[4];
uniform texture2D t2d;
uniform texture3D t3d[4];
uniform sampler s; // ERROR, no binding
uniform sampler sA[4]; // ERROR, no binding
uniform texture2D t2d; // ERROR, no binding
uniform texture3D t3d[4]; // ERROR, no binding
int i;
uniform samplerShadow sShadow;
uniform texture3D t3d5[5];
@@ -28,7 +28,7 @@ void badConst()
sampler2D s2D = sampler2D(t2d, s); // ERROR, no sampler constructor
sampler3D s3d[4] = sampler3D[4](t3d, sA[2]); // ERROR, no sampler constructor
out vec4 color;
out vec4 color; // ERROR, no location
void main()
{