GLSL/SPV: If a texture is used with a shadow sampler, force 'shadow'.
authorJohn Kessenich <cepheus@frii.com>
Sat, 21 Jul 2018 01:04:15 +0000 (19:04 -0600)
committerJohn Kessenich <cepheus@frii.com>
Mon, 23 Jul 2018 21:58:32 +0000 (15:58 -0600)
commit0339af3c1fd8838f188f4705e05478cb2e5d5dee
tree5aedb0fca988ca10a4c46fdf10450e7751d86e87
parentfa4952c31c3a885ffb401418965a706323d2f812
GLSL/SPV: If a texture is used with a shadow sampler, force 'shadow'.

Fixes #854. But, only good if we are not trying to use the same
texture for both shadow and non-shadow constructors.

Force the type of the texture to have 'shadow' set when it is
constructed with a samplerShadow.
Test/baseResults/spv.separate.frag.out
glslang/MachineIndependent/ParseHelper.cpp