diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-14 15:14:25 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-14 15:14:25 +0100 |
| commit | 8ce27b7e15f0fc65c8ee78950c7501660b936178 (patch) | |
| tree | 391f32111b9a30a0156709b6c1ed2fae7b435d57 /src/gpu/texture_readback.h | |
| parent | e38be0dbf5816338ff97e2ee2f9adfff2902dc2b (diff) | |
style: Apply clang-format to codebase
Diffstat (limited to 'src/gpu/texture_readback.h')
| -rw-r--r-- | src/gpu/texture_readback.h | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/src/gpu/texture_readback.h b/src/gpu/texture_readback.h index 8230e13..a99d572 100644 --- a/src/gpu/texture_readback.h +++ b/src/gpu/texture_readback.h @@ -7,27 +7,22 @@ #if !defined(STRIP_ALL) #include "platform/platform.h" -#include <vector> #include <cstdint> +#include <vector> // Read texture pixels to CPU memory (synchronous, blocking) // Format: BGRA8Unorm (4 bytes per pixel) // Returns: width * height * 4 bytes -std::vector<uint8_t> read_texture_pixels( - WGPUInstance instance, - WGPUDevice device, - WGPUTexture texture, - int width, - int height); +std::vector<uint8_t> read_texture_pixels(WGPUInstance instance, + WGPUDevice device, WGPUTexture texture, + int width, int height); // Read RGBA16Float texture and convert to BGRA8Unorm for saving // Converts [-1,1] float range to [0,255] uint8 range // Returns: width * height * 4 bytes (BGRA8) -std::vector<uint8_t> texture_readback_fp16_to_u8( - WGPUDevice device, - WGPUQueue queue, - WGPUTexture texture, - int width, - int height); +std::vector<uint8_t> texture_readback_fp16_to_u8(WGPUDevice device, + WGPUQueue queue, + WGPUTexture texture, int width, + int height); #endif // !defined(STRIP_ALL) |
