Fix SPIR-V for SampleBias

Fixes #2757
This commit is contained in:
Greg Fischer 2021-09-17 17:14:36 -06:00
parent 0f886fe7d3
commit 8b87b84001
4 changed files with 127 additions and 129 deletions

View file

@ -4017,12 +4017,12 @@ void HlslParseContext::decomposeSampleMethods(const TSourceLoc& loc, TIntermType
txsample->getSequence().push_back(txcombine);
txsample->getSequence().push_back(argCoord);
if (argBias != nullptr)
txsample->getSequence().push_back(argBias);
if (argOffset != nullptr)
txsample->getSequence().push_back(argOffset);
if (argBias != nullptr)
txsample->getSequence().push_back(argBias);
node = convertReturn(txsample, sampler);
break;