diff options
| author | skal <pascal.massimino@gmail.com> | 2026-03-05 22:55:56 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-03-05 22:55:56 +0100 |
| commit | 34afbd6ca21d2b960573d787e6eae46fa86b200e (patch) | |
| tree | 08450aeff4c67fb300428e705910265e6cd59943 /tools/cnn_test.cc | |
| parent | 35c9ebb0a7ce0e726f631a2b04bb26098926cfab (diff) | |
style: run clang-format to adhere to coding style
Diffstat (limited to 'tools/cnn_test.cc')
| -rw-r--r-- | tools/cnn_test.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tools/cnn_test.cc b/tools/cnn_test.cc index 1262021..70f857e 100644 --- a/tools/cnn_test.cc +++ b/tools/cnn_test.cc @@ -200,10 +200,8 @@ static WGPUTexture load_texture(WGPUDevice device, WGPUQueue queue, // Upload to GPU const WGPUTexelCopyTextureInfo dst = {.texture = texture, .mipLevel = 0}; const WGPUTexelCopyBufferLayout layout = { - .bytesPerRow = (uint32_t)(width * 4), - .rowsPerImage = (uint32_t)(height)}; - const WGPUExtent3D size = {(uint32_t)(width), - (uint32_t)(height), 1}; + .bytesPerRow = (uint32_t)(width * 4), .rowsPerImage = (uint32_t)(height)}; + const WGPUExtent3D size = {(uint32_t)(width), (uint32_t)(height), 1}; wgpuQueueWriteTexture(queue, &dst, bgra_data.data(), bgra_data.size(), &layout, &size); @@ -255,8 +253,7 @@ static WGPUTexture load_depth_from_alpha(WGPUDevice device, WGPUQueue queue, const WGPUTexelCopyBufferLayout layout = { .bytesPerRow = (uint32_t)(width * sizeof(float)), .rowsPerImage = (uint32_t)(height)}; - const WGPUExtent3D size = {(uint32_t)(width), - (uint32_t)(height), 1}; + const WGPUExtent3D size = {(uint32_t)(width), (uint32_t)(height), 1}; wgpuQueueWriteTexture(queue, &dst, depth_data.data(), depth_data.size() * sizeof(float), &layout, &size); @@ -474,8 +471,7 @@ readback_rgba32uint_to_bgra8(WGPUDevice device, WGPUQueue queue, dst.layout.bytesPerRow = padded_bytes_per_row; dst.layout.rowsPerImage = height; - WGPUExtent3D copy_size = {(uint32_t)(width), - (uint32_t)(height), 1}; + WGPUExtent3D copy_size = {(uint32_t)(width), (uint32_t)(height), 1}; wgpuCommandEncoderCopyTextureToBuffer(encoder, &src, &dst, ©_size); |
