glslang-zig/glslang
LoopDawg 73c57bbe50 HLSL: split textures used for both shadow and non-shadow modes
A single texture can statically appear in code mixed with a shadow sampler
and a non-shadow sampler.  This would be create invalid SPIR-V, unless
one of them is provably dead.

The previous detection of this happened before DCE, so some shaders would
trigger the error even though they wouldn't after DCE.  To handle that
case, this PR splits the texture into two: one with each mode.  It sets
"needsLegalization" (if that happens for any texture) to warn that this shader
will need post-compilation legalization.

If the texture is only used with one of the two modes, behavior is as it
was before.
2017-10-06 11:23:16 -06:00
..
GenericCodeGen Non-functional: White space after "//", mostly for copyrights. 2017-01-06 12:34:14 -07:00
Include HLSL: split textures used for both shadow and non-shadow modes 2017-10-06 11:23:16 -06:00
MachineIndependent HLSL: add subpass input types and methods 2017-10-02 12:46:55 -06:00
OSDependent Merge pull request #969 from d3x0r/patch-1 2017-07-04 11:00:42 -06:00
Public SPV: Add auto location mapping of non-opaque non-block uniform variables. 2017-08-26 15:47:25 -06:00
CMakeLists.txt Merge pull request #969 from d3x0r/patch-1 2017-07-04 11:00:42 -06:00
updateGrammar Bison: Non-functional: Move to revision 3.0.4. 2016-05-04 12:54:56 -06:00