diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2024-11-06 01:47:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-05 09:47:26 -0800 |
| commit | b118451e301d734e3e783b3acdf871f3f6ea851c (patch) | |
| tree | 277f160d31e2c442f724bc6a2d3c09fabff403ca /tools/gfx/metal/metal-render-pass.cpp | |
| parent | 53dd5928c35d5a5cb1f7d2a563348fd1fa87d672 (diff) | |
Move switch statement bodies to their own lines (#5493)
* Move switch statement bodies to their own lines
* format
---------
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tools/gfx/metal/metal-render-pass.cpp')
| -rw-r--r-- | tools/gfx/metal/metal-render-pass.cpp | 21 |
1 files changed, 14 insertions, 7 deletions
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); } } |
