From 34afbd6ca21d2b960573d787e6eae46fa86b200e Mon Sep 17 00:00:00 2001 From: skal Date: Thu, 5 Mar 2026 22:55:56 +0100 Subject: style: run clang-format to adhere to coding style --- src/effects/rotating_cube_effect.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/effects/rotating_cube_effect.cc') diff --git a/src/effects/rotating_cube_effect.cc b/src/effects/rotating_cube_effect.cc index 6c350a7..099d06c 100644 --- a/src/effects/rotating_cube_effect.cc +++ b/src/effects/rotating_cube_effect.cc @@ -9,9 +9,10 @@ RotatingCube::RotatingCube(const GpuContext& ctx, const std::vector& inputs, - const std::vector& outputs, float start_time, - float end_time) - : Effect(ctx, inputs, outputs, start_time, end_time), depth_node_(outputs[0] + "_depth") { + const std::vector& outputs, + float start_time, float end_time) + : Effect(ctx, inputs, outputs, start_time, end_time), + depth_node_(outputs[0] + "_depth") { // Headless mode: skip GPU resource creation (compiled out in STRIP_ALL) HEADLESS_RETURN_IF_NULL(ctx_.device); @@ -166,8 +167,8 @@ void RotatingCube::render(WGPUCommandEncoder encoder, GpuTextureCopyInfo src = { .texture = input_tex, .mipLevel = 0, .aspect = WGPUTextureAspect_All}; GpuTextureCopyInfo dst = {.texture = output_tex, - .mipLevel = 0, - .aspect = WGPUTextureAspect_All}; + .mipLevel = 0, + .aspect = WGPUTextureAspect_All}; WGPUExtent3D copy_size = {(uint32_t)params.resolution.x, (uint32_t)params.resolution.y, 1}; wgpuCommandEncoderCopyTextureToTexture(encoder, &src, &dst, ©_size); @@ -181,7 +182,7 @@ void RotatingCube::render(WGPUCommandEncoder encoder, // Render pass with depth WGPURenderPassColorAttachment color_attachment = { .view = color_view, - #if !defined(DEMO_CROSS_COMPILE_WIN32) +#if !defined(DEMO_CROSS_COMPILE_WIN32) .depthSlice = WGPU_DEPTH_SLICE_UNDEFINED, #endif // .loadOp = WGPULoadOp_Clear, -- cgit v1.2.3