mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-22 22:46:41 +00:00
Offset image operands is only valid for gather operations
This commit is contained in:
@@ -2573,10 +2573,6 @@ private:
|
||||
|
||||
rdcspv::ImageOperandsAndParamDatas imageOperands;
|
||||
|
||||
if(m_pDriver->GetDeviceEnabledFeatures().shaderImageGatherExtended &&
|
||||
offsets[i] != rdcspv::Id())
|
||||
imageOperands.setOffset(offsets[i]);
|
||||
|
||||
cases.add(rdcspv::OpLabel(label));
|
||||
rdcspv::Id loadedImage =
|
||||
cases.add(rdcspv::OpLoad(texSampTypes[i], editor.MakeId(), bindVars[i]));
|
||||
@@ -2643,10 +2639,6 @@ private:
|
||||
|
||||
rdcspv::ImageOperandsAndParamDatas imageOperands;
|
||||
|
||||
if(m_pDriver->GetDeviceEnabledFeatures().shaderImageGatherExtended &&
|
||||
offsets[i] != rdcspv::Id())
|
||||
imageOperands.setOffset(offsets[i]);
|
||||
|
||||
cases.add(rdcspv::OpLabel(label));
|
||||
rdcspv::Id loadedImage =
|
||||
cases.add(rdcspv::OpLoad(texSampTypes[i], editor.MakeId(), bindVars[i]));
|
||||
|
||||
Reference in New Issue
Block a user