GLSL: Construct shadow texture from non-shadow sampler.
Tracks https://github.com/KhronosGroup/GLSL/pull/22.
This commit is contained in:
@@ -16,7 +16,6 @@ ERROR: 0:21: 'sampler3D' : sampler-constructor cannot make an array of samplers
|
||||
ERROR: 0:22: 'sampler2D' : sampler-constructor first argument must be a scalar textureXXX type
|
||||
ERROR: 0:23: 'sampler2D' : sampler-constructor first argument must match type and dimensionality of constructor type
|
||||
ERROR: 0:24: 'sampler2D' : sampler-constructor second argument presence of shadow must match constructor presence of shadow
|
||||
ERROR: 0:25: 'sampler2DShadow' : sampler-constructor second argument presence of shadow must match constructor presence of shadow
|
||||
ERROR: 0:28: 'sampler2D' : sampler/image types can only be used in uniform variables or function parameters: s2D
|
||||
ERROR: 0:29: 'sampler3D' : sampler-constructor cannot make an array of samplers
|
||||
ERROR: 0:29: 'sampler3D' : sampler/image types can only be used in uniform variables or function parameters: s3d
|
||||
@@ -56,7 +55,7 @@ ERROR: 0:101: 'noise1' : no matching overloaded function found
|
||||
ERROR: 0:102: 'noise2' : no matching overloaded function found
|
||||
ERROR: 0:103: 'noise3' : no matching overloaded function found
|
||||
ERROR: 0:104: 'noise4' : no matching overloaded function found
|
||||
ERROR: 55 compilation errors. No code generated.
|
||||
ERROR: 54 compilation errors. No code generated.
|
||||
|
||||
|
||||
ERROR: Linking fragment stage: Only one push_constant block is allowed per stage
|
||||
|
||||
2
Test/vulkan.frag
Normal file → Executable file
2
Test/vulkan.frag
Normal file → Executable file
@@ -22,7 +22,7 @@ void badConst()
|
||||
sampler2D(i2d, s); // ERROR, image instead of texture
|
||||
sampler2D(t3d[1], s); // ERROR, 3D not 2D
|
||||
sampler2D(t2d, sShadow); // ERROR, shadow mismatch
|
||||
sampler2DShadow(t2d, s); // ERROR, shadow mismatch
|
||||
sampler2DShadow(t2d, s);
|
||||
}
|
||||
|
||||
sampler2D s2D = sampler2D(t2d, s); // ERROR, no sampler constructor
|
||||
|
||||
Reference in New Issue
Block a user