diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-08 07:40:29 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-08 07:40:29 +0100 |
| commit | c9195f997f3e797f03ab90464e4158717198a167 (patch) | |
| tree | 331304f42870246efdc64cc97ad42de59444ef3a /src/tests/offscreen_render_target.h | |
| parent | b8e6929cafa41681f0b27ac104c9cf1d4e510837 (diff) | |
style: Apply clang-format to all source files
Diffstat (limited to 'src/tests/offscreen_render_target.h')
| -rw-r--r-- | src/tests/offscreen_render_target.h | 28 |
1 files changed, 18 insertions, 10 deletions
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) |
