HLSL: force textures to shadow modes from combined samplers
Texture shadow mode must match the state of the sampler they are combined with. This change does that, both for the AST and the symbol table. Note that the texture cannot easily be *created* the right way, because this may not be known at that time. Instead, the texture is subsequently patched. This cannot work if a single texture is used with both a shadow and non-shadow sampler, so that case is detected and generates an error. This is permitted by the HLSL language, however. See #1073 discussion. Fixed one test source that was using a texture with both shadow and non-shadow samplers.
Showing
- Test/baseResults/hlsl.gathercmpRGBA.offset.dx10.frag.out 227 additions, 230 deletionsTest/baseResults/hlsl.gathercmpRGBA.offset.dx10.frag.out
- Test/baseResults/hlsl.samplecmp.array.dx10.frag.out 285 additions, 294 deletionsTest/baseResults/hlsl.samplecmp.array.dx10.frag.out
- Test/baseResults/hlsl.samplecmp.basic.dx10.frag.out 273 additions, 282 deletionsTest/baseResults/hlsl.samplecmp.basic.dx10.frag.out
- Test/baseResults/hlsl.samplecmp.negative.frag.out 53 additions, 51 deletionsTest/baseResults/hlsl.samplecmp.negative.frag.out
- Test/baseResults/hlsl.samplecmp.offset.dx10.frag.out 220 additions, 226 deletionsTest/baseResults/hlsl.samplecmp.offset.dx10.frag.out
- Test/baseResults/hlsl.samplecmp.offsetarray.dx10.frag.out 232 additions, 238 deletionsTest/baseResults/hlsl.samplecmp.offsetarray.dx10.frag.out
- Test/baseResults/hlsl.samplecmplevelzero.array.dx10.frag.out 286 additions, 295 deletionsTest/baseResults/hlsl.samplecmplevelzero.array.dx10.frag.out
- Test/baseResults/hlsl.samplecmplevelzero.basic.dx10.frag.out 274 additions, 283 deletionsTest/baseResults/hlsl.samplecmplevelzero.basic.dx10.frag.out
- Test/baseResults/hlsl.samplecmplevelzero.offset.dx10.frag.out 221 additions, 227 deletions.../baseResults/hlsl.samplecmplevelzero.offset.dx10.frag.out
- Test/baseResults/hlsl.samplecmplevelzero.offsetarray.dx10.frag.out 233 additions, 239 deletions...Results/hlsl.samplecmplevelzero.offsetarray.dx10.frag.out
- Test/hlsl.samplecmp.negative.frag 2 additions, 1 deletionTest/hlsl.samplecmp.negative.frag
- hlsl/hlslParseHelper.cpp 46 additions, 0 deletionshlsl/hlslParseHelper.cpp
- hlsl/hlslParseHelper.h 6 additions, 0 deletionshlsl/hlslParseHelper.h
Loading
Please register or sign in to comment