mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-13 11:39:47 +00:00
d3d12: Release index buffer and upload command allocator
This commit is contained in:
parent
bd68d382bd
commit
5ce0261265
1 changed files with 2 additions and 0 deletions
|
@ -109,6 +109,7 @@ void D3D12GSRender::ResourceStorage::Init(ID3D12Device *device)
|
||||||
void D3D12GSRender::ResourceStorage::Release()
|
void D3D12GSRender::ResourceStorage::Release()
|
||||||
{
|
{
|
||||||
// NOTE: Should be released only if no command are in flight !
|
// NOTE: Should be released only if no command are in flight !
|
||||||
|
m_indexBuffer->Release();
|
||||||
m_backbufferAsRendertarget->Release();
|
m_backbufferAsRendertarget->Release();
|
||||||
m_constantsBufferDescriptorsHeap->Release();
|
m_constantsBufferDescriptorsHeap->Release();
|
||||||
m_scaleOffsetDescriptorHeap->Release();
|
m_scaleOffsetDescriptorHeap->Release();
|
||||||
|
@ -124,6 +125,7 @@ void D3D12GSRender::ResourceStorage::Release()
|
||||||
for (auto tmp : m_inflightCommandList)
|
for (auto tmp : m_inflightCommandList)
|
||||||
tmp->Release();
|
tmp->Release();
|
||||||
m_commandAllocator->Release();
|
m_commandAllocator->Release();
|
||||||
|
m_textureUploadCommandAllocator->Release();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 32 bits float to U8 unorm CS
|
// 32 bits float to U8 unorm CS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue