GLSL: Construct shadow texture from non-shadow sampler.
Tracks https://github.com/KhronosGroup/GLSL/pull/22.
This commit is contained in:
parent
0339af3c1f
commit
7d4c9a07b5
5 changed files with 8 additions and 71 deletions
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue