From 8ce27b7e15f0fc65c8ee78950c7501660b936178 Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 14 Feb 2026 15:14:25 +0100 Subject: style: Apply clang-format to codebase --- src/effects/rotating_cube_effect.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 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 a42feaa..c03eccb 100644 --- a/src/effects/rotating_cube_effect.cc +++ b/src/effects/rotating_cube_effect.cc @@ -5,9 +5,9 @@ #include "effects/rotating_cube_effect.h" #include "generated/assets.h" #include "gpu/bind_group_builder.h" -#include "gpu/shader_composer.h" #include "gpu/gpu.h" #include "gpu/sampler_cache.h" +#include "gpu/shader_composer.h" #include "util/asset_manager_utils.h" RotatingCubeEffect::RotatingCubeEffect(const GpuContext& ctx) : Effect(ctx) { @@ -39,12 +39,16 @@ void RotatingCubeEffect::init(MainSequence* demo) { TextureWithView noise = gpu_create_texture_2d( ctx_.device, 1, 1, WGPUTextureFormat_RGBA8Unorm, - (WGPUTextureUsage)(WGPUTextureUsage_TextureBinding | WGPUTextureUsage_RenderAttachment), 1); + (WGPUTextureUsage)(WGPUTextureUsage_TextureBinding | + WGPUTextureUsage_RenderAttachment), + 1); noise_texture_ = noise.texture; noise_view_ = noise.view; - noise_sampler_ = SamplerCache::Get().get_or_create(ctx_.device, SamplerCache::linear()); - mask_sampler_ = SamplerCache::Get().get_or_create(ctx_.device, SamplerCache::clamp()); + noise_sampler_ = + SamplerCache::Get().get_or_create(ctx_.device, SamplerCache::linear()); + mask_sampler_ = + SamplerCache::Get().get_or_create(ctx_.device, SamplerCache::clamp()); size_t shader_size; const char* shader_code = -- cgit v1.2.3