SPV: Fix an issue related with using CubeArrayShadow for texture()
This commit is contained in:
parent
2c03478442
commit
71519fe70b
5 changed files with 298 additions and 311 deletions
|
|
@ -1901,9 +1901,11 @@ spv::Id TGlslangToSpvTraverser::createImageTextureFunctionCall(glslang::TIntermO
|
|||
|
||||
// Check for texture functions other than queries
|
||||
|
||||
bool cubeCompare = sampler.dim == glslang::EsdCube && sampler.arrayed && sampler.shadow;
|
||||
|
||||
// check for bias argument
|
||||
bool bias = false;
|
||||
if (! cracked.lod && ! cracked.gather && ! cracked.grad && ! cracked.fetch) {
|
||||
if (! cracked.lod && ! cracked.gather && ! cracked.grad && ! cracked.fetch && ! cubeCompare) {
|
||||
int nonBiasArgCount = 2;
|
||||
if (cracked.offset)
|
||||
++nonBiasArgCount;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue