Only set shader ext UAV on DXBC bytecode if it's present

* For DXIL bytecode we don't attempt to nicely fixup the disassembly, but we
  still want to remove the reflected UAV if present.
This commit is contained in:
baldurk
2021-01-25 21:29:09 +00:00
parent 0dde721ad5
commit 435ef86adf
@@ -1872,7 +1872,8 @@ DXBCContainer::DXBCContainer(bytebuf &ByteCode, const rdcstr &debugInfoPath, Gra
{
found = true;
m_Reflection->UAVs.erase(i);
m_DXBCByteCode->SetShaderEXTUAV(api, shaderExtSpace, shaderExtReg);
if(m_DXBCByteCode)
m_DXBCByteCode->SetShaderEXTUAV(api, shaderExtSpace, shaderExtReg);
m_ShaderExt = {shaderExtSpace, shaderExtReg};
break;
}