From 8ce27b7e15f0fc65c8ee78950c7501660b936178 Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 14 Feb 2026 15:14:25 +0100 Subject: style: Apply clang-format to codebase --- src/platform/stub_types.h | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) (limited to 'src/platform') diff --git a/src/platform/stub_types.h b/src/platform/stub_types.h index ff9cccf..f2810ea 100644 --- a/src/platform/stub_types.h +++ b/src/platform/stub_types.h @@ -107,7 +107,9 @@ struct WGPURenderPassColorAttachment { WGPUTextureView view; WGPULoadOp loadOp; WGPUStoreOp storeOp; - struct { float r, g, b, a; } clearValue; + struct { + float r, g, b, a; + } clearValue; uint32_t depthSlice; }; struct WGPUComputePassDescriptor {}; @@ -117,9 +119,15 @@ struct WGPUSurfaceTexture { WGPUTexture texture; WGPUSurfaceGetCurrentTextureStatus status; }; -struct WGPUColor { float r, g, b, a; }; -struct WGPUExtent3D { uint32_t width, height, depthOrArrayLayers; }; -struct WGPUOrigin3D { uint32_t x, y, z; }; +struct WGPUColor { + float r, g, b, a; +}; +struct WGPUExtent3D { + uint32_t width, height, depthOrArrayLayers; +}; +struct WGPUOrigin3D { + uint32_t x, y, z; +}; struct WGPUImageCopyTexture {}; struct WGPUImageCopyBuffer {}; struct WGPUTextureDataLayout {}; @@ -135,7 +143,8 @@ struct WGPUStringView { }; static inline WGPUStringView str_view(const char* str) { - if (!str) return {nullptr, 0}; + if (!str) + return {nullptr, 0}; return {str, strlen(str)}; } @@ -145,8 +154,10 @@ static inline WGPUStringView label_view(const char* str) { } // Platform shims (no-ops) -static inline void platform_wgpu_wait_any(WGPUInstance) {} -static inline void platform_wgpu_set_error_callback(WGPUDevice, void*) {} +static inline void platform_wgpu_wait_any(WGPUInstance) { +} +static inline void platform_wgpu_set_error_callback(WGPUDevice, void*) { +} // Constants #define WGPU_DEPTH_SLICE_UNDEFINED 0xffffffff -- cgit v1.2.3