diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-08 07:40:29 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-08 07:40:29 +0100 |
| commit | c9195f997f3e797f03ab90464e4158717198a167 (patch) | |
| tree | 331304f42870246efdc64cc97ad42de59444ef3a /src/gpu/effects/particles_effect.cc | |
| parent | b8e6929cafa41681f0b27ac104c9cf1d4e510837 (diff) | |
style: Apply clang-format to all source files
Diffstat (limited to 'src/gpu/effects/particles_effect.cc')
| -rw-r--r-- | src/gpu/effects/particles_effect.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gpu/effects/particles_effect.cc b/src/gpu/effects/particles_effect.cc index d9f8f2a..f25009b 100644 --- a/src/gpu/effects/particles_effect.cc +++ b/src/gpu/effects/particles_effect.cc @@ -6,8 +6,7 @@ #include <vector> // --- ParticlesEffect --- -ParticlesEffect::ParticlesEffect(const GpuContext& ctx) - : Effect(ctx) { +ParticlesEffect::ParticlesEffect(const GpuContext& ctx) : Effect(ctx) { uniforms_ = gpu_create_buffer(ctx_.device, sizeof(float) * 4, WGPUBufferUsage_Uniform | WGPUBufferUsage_CopyDst); @@ -23,8 +22,8 @@ ParticlesEffect::ParticlesEffect(const GpuContext& ctx) ResourceBinding rb[] = { {particles_buffer_, WGPUBufferBindingType_ReadOnlyStorage}, {uniforms_, WGPUBufferBindingType_Uniform}}; - render_pass_ = - gpu_create_render_pass(ctx_.device, ctx_.format, particle_render_wgsl, rb, 2); + render_pass_ = gpu_create_render_pass(ctx_.device, ctx_.format, + particle_render_wgsl, rb, 2); render_pass_.vertex_count = 6; render_pass_.instance_count = NUM_PARTICLES; } |
