mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-18 07:51:14 +00:00
Skip post-vs fetch for instanced drawcalls with no instances
This commit is contained in:
@@ -189,7 +189,8 @@ void D3D11Replay::InitPostVSBuffers(uint32_t eventId)
|
||||
|
||||
const DrawcallDescription *drawcall = m_pDevice->GetDrawcall(eventId);
|
||||
|
||||
if(drawcall->numIndices == 0)
|
||||
if(drawcall->numIndices == 0 ||
|
||||
((drawcall->flags & DrawFlags::Instanced) && drawcall->numInstances == 0))
|
||||
return;
|
||||
|
||||
DXBC::DXBCFile *dxbcVS = wrappedVS->GetDXBC();
|
||||
|
||||
@@ -175,7 +175,7 @@ void D3D12Replay::InitPostVSBuffers(uint32_t eventId)
|
||||
|
||||
const DrawcallDescription *drawcall = m_pDevice->GetDrawcall(eventId);
|
||||
|
||||
if(drawcall->numIndices == 0)
|
||||
if(drawcall->numIndices == 0 || drawcall->numInstances == 0)
|
||||
return;
|
||||
|
||||
DXBC::DXBCFile *dxbcVS = vs->GetDXBC();
|
||||
|
||||
@@ -164,7 +164,8 @@ void GLReplay::InitPostVSBuffers(uint32_t eventId)
|
||||
|
||||
const DrawcallDescription *drawcall = m_pDriver->GetDrawcall(eventId);
|
||||
|
||||
if(drawcall->numIndices == 0)
|
||||
if(drawcall->numIndices == 0 ||
|
||||
((drawcall->flags & DrawFlags::Instanced) && drawcall->numInstances == 0))
|
||||
{
|
||||
// draw is 0 length, nothing to do
|
||||
m_PostVSData[eventId] = GLPostVSData();
|
||||
|
||||
Reference in New Issue
Block a user