GLSL/SPV: Fix #1196: Require resources to have layout(binding=X).
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user