From b118451e301d734e3e783b3acdf871f3f6ea851c Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Wed, 6 Nov 2024 01:47:26 +0800 Subject: Move switch statement bodies to their own lines (#5493) * Move switch statement bodies to their own lines * format --------- Co-authored-by: Yong He --- tools/gfx/metal/metal-render-pass.cpp | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'tools/gfx/metal/metal-render-pass.cpp') diff --git a/tools/gfx/metal/metal-render-pass.cpp b/tools/gfx/metal/metal-render-pass.cpp index 49e470028..2b8cf61d2 100644 --- a/tools/gfx/metal/metal-render-pass.cpp +++ b/tools/gfx/metal/metal-render-pass.cpp @@ -22,10 +22,14 @@ static inline MTL::LoadAction translateLoadOp(IRenderPassLayout::TargetLoadOp lo { switch (loadOp) { - case IRenderPassLayout::TargetLoadOp::Load: return MTL::LoadActionLoad; - case IRenderPassLayout::TargetLoadOp::Clear: return MTL::LoadActionClear; - case IRenderPassLayout::TargetLoadOp::DontCare: return MTL::LoadActionDontCare; - default: return MTL::LoadAction(0); + case IRenderPassLayout::TargetLoadOp::Load: + return MTL::LoadActionLoad; + case IRenderPassLayout::TargetLoadOp::Clear: + return MTL::LoadActionClear; + case IRenderPassLayout::TargetLoadOp::DontCare: + return MTL::LoadActionDontCare; + default: + return MTL::LoadAction(0); } } @@ -33,9 +37,12 @@ static inline MTL::StoreAction translateStoreOp(IRenderPassLayout::TargetStoreOp { switch (storeOp) { - case IRenderPassLayout::TargetStoreOp::Store: return MTL::StoreActionStore; - case IRenderPassLayout::TargetStoreOp::DontCare: return MTL::StoreActionDontCare; - default: return MTL::StoreAction(0); + case IRenderPassLayout::TargetStoreOp::Store: + return MTL::StoreActionStore; + case IRenderPassLayout::TargetStoreOp::DontCare: + return MTL::StoreActionDontCare; + default: + return MTL::StoreAction(0); } } -- cgit v1.2.3