Advertisement

ref count SwapChain->GetBuffer()

Started by January 29, 2019 10:36 AM
1 comment, last by SoldierOfLight 6 years ago

Does IDXGISwapChain::GetBuffer() in DX12 increase the COM reference count to the buffer being obtained from this method? I am getting weird Live object reports in my code . I call ReportLiveObjects() at the app shut down stage just after destroying the virtual adapter and I'm getting ref count 3 on ID3D12Device . I tried to do an extra reset(I use ComPtr on frame buffers) on the buffers obtained to be sure but the debugger complains about underflow ref count -1 ? Thanks ? 

Yes, GetBuffer() increases the refcount.

If the only live object you're seeing is the device, then that's where the references are.

This topic is closed to new replies.

Advertisement