mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Account for stream-out counter when calculating output size
This commit is contained in:
@@ -323,7 +323,8 @@ void D3D12Replay::InitPostVSBuffers(uint32_t eventId)
|
||||
ID3D12Resource *idxBuf = NULL;
|
||||
|
||||
bool recreate = false;
|
||||
uint64_t outputSize = uint64_t(drawcall->numIndices) * drawcall->numInstances * stride;
|
||||
// we add 64 to account for the stream-out data counter
|
||||
uint64_t outputSize = uint64_t(drawcall->numIndices) * drawcall->numInstances * stride + 64;
|
||||
|
||||
if(m_SOBufferSize < outputSize)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user