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 /examples/ray-tracing-pipeline | |
| 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 'examples/ray-tracing-pipeline')
| -rw-r--r-- | examples/ray-tracing-pipeline/main.cpp | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/examples/ray-tracing-pipeline/main.cpp b/examples/ray-tracing-pipeline/main.cpp index f5ad03e1b..d32130c6a 100644 --- a/examples/ray-tracing-pipeline/main.cpp +++ b/examples/ray-tracing-pipeline/main.cpp @@ -255,11 +255,20 @@ struct RayTracing : public WindowedAppBase { switch (key) { - default: break; - case platform::KeyCode::W: wPressed = state; break; - case platform::KeyCode::A: aPressed = state; break; - case platform::KeyCode::S: sPressed = state; break; - case platform::KeyCode::D: dPressed = state; break; + default: + break; + case platform::KeyCode::W: + wPressed = state; + break; + case platform::KeyCode::A: + aPressed = state; + break; + case platform::KeyCode::S: + sPressed = state; + break; + case platform::KeyCode::D: + dPressed = state; + break; } } void onKeyDown(platform::KeyEventArgs args) { setKeyState(args.key, true); } |
