Explicit lod image sample instructions can also just have a grad value

This commit is contained in:
baldurk
2016-02-07 18:51:35 +01:00
parent 8bc3768ec0
commit a9ed1c8c02
@@ -4039,12 +4039,12 @@ void ParseSPIRV(uint32_t *spirv, size_t spirvLength, SPVModule &module)
idx++;
}
// explicit lod instructions must pass a lod argument
// explicit lod instructions must pass a lod or grad argument
if(op.opcode == spv::OpImageSampleExplicitLod ||
op.opcode == spv::OpImageSampleDrefExplicitLod ||
op.opcode == spv::OpImageSampleProjExplicitLod ||
op.opcode == spv::OpImageSampleProjDrefExplicitLod)
RDCASSERT(imMask & spv::ImageOperandsLodMask);
RDCASSERT(imMask & (spv::ImageOperandsLodMask|spv::ImageOperandsGradMask));
// optional arguments