glslang-zig/glslang/Include
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
..
arrays.h GLSL: Fix #853: Only outer dimension of array can be specialization constant. 2017-06-08 12:26:49 -06:00
BaseTypes.h Implement the extension GL_AMD_shader_fragment_mask 2017-09-09 22:05:24 +08:00
Common.h Build: Fix strdup -> _strdup warnings. 2017-09-11 21:56:09 -06:00
ConstantUnion.h Add basic HS/DS implementation. 2017-02-10 16:59:09 -07:00
InfoSink.h Non-functional: White space after "//", mostly for copyrights. 2017-01-06 12:34:14 -07:00
InitializeGlobals.h Non-functional: White space after "//", mostly for copyrights. 2017-01-06 12:34:14 -07:00
intermediate.h HLSL: split textures used for both shadow and non-shadow modes 2017-10-06 11:23:16 -06:00
PoolAlloc.h Memory/constructor/warning clean-up. Addresses issue #705. 2017-02-02 14:55:02 -07:00
ResourceLimits.h Non-functional: White space after "//", mostly for copyrights. 2017-01-06 12:34:14 -07:00
revision.h HLSL: Fix #770: implicitly convert bool operands to numeric operators. 2017-04-12 22:38:24 -06:00
revision.template Non-Functional: Whitespace, comments, replace accidentally deleted comment. 2017-01-06 11:24:14 -07:00
ShHandle.h Non-functional: White space after "//", mostly for copyrights. 2017-01-06 12:34:14 -07:00
Types.h HLSL: add methods to track user structure in texture return type. 2017-08-15 16:40:21 -06:00