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/effects/rotating_cube_effect.cc | |
| parent | e38be0dbf5816338ff97e2ee2f9adfff2902dc2b (diff) | |
style: Apply clang-format to codebase
Diffstat (limited to 'src/effects/rotating_cube_effect.cc')
| -rw-r--r-- | src/effects/rotating_cube_effect.cc | 12 |
1 files changed, 8 insertions, 4 deletions
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 = |
