diff options
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) |
