From c9195f997f3e797f03ab90464e4158717198a167 Mon Sep 17 00:00:00 2001 From: skal Date: Sun, 8 Feb 2026 07:40:29 +0100 Subject: style: Apply clang-format to all source files --- src/tests/offscreen_render_target.h | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) (limited to 'src/tests/offscreen_render_target.h') diff --git a/src/tests/offscreen_render_target.h b/src/tests/offscreen_render_target.h index 4163ec1..10c12aa 100644 --- a/src/tests/offscreen_render_target.h +++ b/src/tests/offscreen_render_target.h @@ -13,19 +13,27 @@ class OffscreenRenderTarget { public: // Create an offscreen render target with specified dimensions - OffscreenRenderTarget(WGPUInstance instance, - WGPUDevice device, - int width, - int height, - WGPUTextureFormat format = WGPUTextureFormat_BGRA8Unorm); + OffscreenRenderTarget( + WGPUInstance instance, WGPUDevice device, int width, int height, + WGPUTextureFormat format = WGPUTextureFormat_BGRA8Unorm); ~OffscreenRenderTarget(); // Accessors - WGPUTexture texture() const { return texture_; } - WGPUTextureView view() const { return view_; } - int width() const { return width_; } - int height() const { return height_; } - WGPUTextureFormat format() const { return format_; } + WGPUTexture texture() const { + return texture_; + } + WGPUTextureView view() const { + return view_; + } + int width() const { + return width_; + } + int height() const { + return height_; + } + WGPUTextureFormat format() const { + return format_; + } // Read pixels from the render target // Returns BGRA8 pixel data (width * height * 4 bytes) -- cgit v1.2.3