diff options
| author | skal <pascal.massimino@gmail.com> | 2026-01-31 21:11:11 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-01-31 21:11:11 +0100 |
| commit | 25e693cc46324b4ec588530de542bba8af6f47c6 (patch) | |
| tree | 8a959e442f9330dd3f881fe4109e83b831f25a7e /src/gpu/gpu.cc | |
| parent | 9379697ccdf6f44ade7933d5635f72f644f6b92e (diff) | |
style: add vertical compression rules to clang-format
- Enabled AllowShortFunctionsOnASingleLine: All
- Enabled AllowShortBlocksOnASingleLine: Always
- Enabled AllowShortIfStatementsOnASingleLine: Always
- Enabled AllowShortLoopsOnASingleLine: true
- Set MaxEmptyLinesToKeep: 1
- Applied formatting to all source files.
Diffstat (limited to 'src/gpu/gpu.cc')
| -rw-r--r-- | src/gpu/gpu.cc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/gpu/gpu.cc b/src/gpu/gpu.cc index b9545bf..ebf709e 100644 --- a/src/gpu/gpu.cc +++ b/src/gpu/gpu.cc @@ -327,8 +327,7 @@ void gpu_init(GLFWwindow *window, int width, int height) { adapter_cb.userdata1 = &g_adapter; wgpuInstanceRequestAdapter(g_instance, &adapter_opts, adapter_cb); #endif - while (!g_adapter) - wgpuInstanceWaitAny(g_instance, 0, nullptr, 0); + while (!g_adapter) wgpuInstanceWaitAny(g_instance, 0, nullptr, 0); WGPUDeviceDescriptor device_desc = {}; #ifndef STRIP_ALL @@ -347,8 +346,7 @@ void gpu_init(GLFWwindow *window, int width, int height) { device_cb.userdata1 = &g_device; wgpuAdapterRequestDevice(g_adapter, &device_desc, device_cb); #endif - while (!g_device) - wgpuInstanceWaitAny(g_instance, 0, nullptr, 0); + while (!g_device) wgpuInstanceWaitAny(g_instance, 0, nullptr, 0); #if defined(DEMO_CROSS_COMPILE_WIN32) && !defined(STRIP_ALL) set_error_callback(g_device, handle_device_error); @@ -384,6 +382,4 @@ void gpu_simulate_until(float time) { } #endif -void gpu_shutdown() { - g_main_sequence.shutdown(); -}
\ No newline at end of file +void gpu_shutdown() { g_main_sequence.shutdown(); }
\ No newline at end of file |
