mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Fix usage calculation for constant buffers to match non-sparse cbuffers
This commit is contained in:
@@ -1491,13 +1491,11 @@ bool D3D11RenderState::shader::Used_CB(uint32_t slot) const
|
||||
if(dxbc == NULL)
|
||||
return true;
|
||||
|
||||
if(slot >= dxbc->m_CBuffers.size())
|
||||
return false;
|
||||
for(size_t i = 0; i < dxbc->m_CBuffers.size(); i++)
|
||||
if(dxbc->m_CBuffers[i].reg == slot)
|
||||
return true;
|
||||
|
||||
if(dxbc->m_CBuffers[slot].variables.empty())
|
||||
return false;
|
||||
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool D3D11RenderState::shader::Used_SRV(uint32_t slot) const
|
||||
|
||||
Reference in New Issue
Block a user