Skip to content

Commit

Permalink
e3971bde: METAL: fix subpass depth input binding
Browse files Browse the repository at this point in the history
  • Loading branch information
NicSavichev committed Jan 14, 2025
1 parent 370dbb6 commit 6c117dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion prog/engine/drv/drv3d_Metal/d3d_rtarget.mm
Original file line number Diff line number Diff line change
Expand Up @@ -722,10 +722,11 @@ static MTLStoreAction decodeStoreAction(RenderPass::Subpass &pass, uint32_t stor
RenderPass::Subpass::PassInput input;
input.dst_slot = bind.slot + rp_desc.subpassBindingOffset;
input.src_slot = bind.target;
pass.inputs.push_back(input);

if (bind.slot == RenderPassExtraIndexes::RP_SLOT_DEPTH_STENCIL)
pass.depth_stencil = attach;
else
pass.inputs.push_back(input);
}
else if (subpass_action == RP_TA_SUBPASS_RESOLVE)
{
Expand Down

0 comments on commit 6c117dc

Please sign in to comment.