mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
d3d12: make depth read optionnal
This commit is contained in:
parent
487fd4dc2a
commit
824b9aa628
1 changed files with 82 additions and 81 deletions
|
@ -1419,11 +1419,12 @@ void D3D12GSRender::Flip()
|
||||||
|
|
||||||
void D3D12GSRender::WriteDepthBuffer()
|
void D3D12GSRender::WriteDepthBuffer()
|
||||||
{
|
{
|
||||||
|
if (!Ini.GSDumpDepthBuffer.GetValue())
|
||||||
|
return;
|
||||||
if (!m_set_context_dma_z)
|
if (!m_set_context_dma_z)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
u32 address = GetAddress(m_surface_offset_z, m_context_dma_z - 0xfeed0000);
|
u32 address = GetAddress(m_surface_offset_z, m_context_dma_z - 0xfeed0000);
|
||||||
|
|
||||||
auto ptr = vm::get_ptr<void>(address);
|
auto ptr = vm::get_ptr<void>(address);
|
||||||
|
|
||||||
D3D12_HEAP_PROPERTIES heapProp = {};
|
D3D12_HEAP_PROPERTIES heapProp = {};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue