From 25e693cc46324b4ec588530de542bba8af6f47c6 Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 31 Jan 2026 21:11:11 +0100 Subject: 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. --- src/gpu/gpu.cc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/gpu/gpu.cc') 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 -- cgit v1.2.3