Skip to content

Commit c90de02

Browse files
committed
MetalDevice: Fix depth not storing
1 parent 1a5865b commit c90de02

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/util/metal_device.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,6 +1778,7 @@ static void DumpShader(u32 n, const std::string_view& suffix, const std::string_
17781778
{
17791779
MetalTexture* const RT = m_current_render_targets[i];
17801780
desc.colorAttachments[i].texture = RT->GetMTLTexture();
1781+
desc.colorAttachments[i].storeAction = MTLStoreActionStore;
17811782
RT->SetUseFenceCounter(m_current_fence_counter);
17821783

17831784
switch (RT->GetState())
@@ -1814,6 +1815,7 @@ static void DumpShader(u32 n, const std::string_view& suffix, const std::string_
18141815
if (MetalTexture* DS = m_current_depth_target)
18151816
{
18161817
desc.depthAttachment.texture = m_current_depth_target->GetMTLTexture();
1818+
desc.depthAttachment.storeAction = MTLStoreActionStore;
18171819
DS->SetUseFenceCounter(m_current_fence_counter);
18181820

18191821
switch (DS->GetState())

0 commit comments

Comments
 (0)