mirror of
https://github.com/wolfpld/tracy.git
synced 2026-09-01 07:58:31 +00:00
claim shared ownership of the queue to keep the queue (and device) alive
This commit is contained in:
@@ -146,6 +146,8 @@ namespace tracy
|
||||
{
|
||||
ZoneScopedC(Color::Red4);
|
||||
|
||||
m_queue->AddRef();
|
||||
|
||||
// Verify we support timestamp queries on this queue.
|
||||
if (queue->GetDesc().Type == D3D12_COMMAND_LIST_TYPE_COPY)
|
||||
{
|
||||
@@ -277,6 +279,7 @@ namespace tracy
|
||||
#endif
|
||||
m_readbackBuffer->Release();
|
||||
m_queryHeap->Release();
|
||||
m_queue->Release();
|
||||
}
|
||||
|
||||
void Name( const char* name, uint16_t len )
|
||||
|
||||
Reference in New Issue
Block a user