diff options
Diffstat (limited to 'src/effects')
| -rw-r--r-- | src/effects/flash_effect.cc | 6 | ||||
| -rw-r--r-- | src/effects/flash_effect.h | 6 | ||||
| -rw-r--r-- | src/effects/gaussian_blur_effect.cc | 4 | ||||
| -rw-r--r-- | src/effects/gaussian_blur_effect.h | 4 | ||||
| -rw-r--r-- | src/effects/heptagon_effect.cc | 6 | ||||
| -rw-r--r-- | src/effects/heptagon_effect.h | 6 | ||||
| -rw-r--r-- | src/effects/hybrid3_d_effect.cc | 10 | ||||
| -rw-r--r-- | src/effects/hybrid3_d_effect.h | 6 | ||||
| -rw-r--r-- | src/effects/particles_effect.cc | 6 | ||||
| -rw-r--r-- | src/effects/particles_effect.h | 4 | ||||
| -rw-r--r-- | src/effects/passthrough_effect.cc | 4 | ||||
| -rw-r--r-- | src/effects/passthrough_effect.h | 4 | ||||
| -rw-r--r-- | src/effects/peak_meter_effect.cc | 6 | ||||
| -rw-r--r-- | src/effects/peak_meter_effect.h | 6 | ||||
| -rw-r--r-- | src/effects/placeholder_effect.cc | 4 | ||||
| -rw-r--r-- | src/effects/placeholder_effect.h | 4 | ||||
| -rw-r--r-- | src/effects/rotating_cube_effect.cc | 10 | ||||
| -rw-r--r-- | src/effects/rotating_cube_effect.h | 6 |
18 files changed, 51 insertions, 51 deletions
diff --git a/src/effects/flash_effect.cc b/src/effects/flash_effect.cc index 1d0e629..787e33d 100644 --- a/src/effects/flash_effect.cc +++ b/src/effects/flash_effect.cc @@ -6,7 +6,7 @@ #include "gpu/shaders.h" #include "util/fatal_error.h" -FlashEffect::FlashEffect(const GpuContext& ctx, +Flash::Flash(const GpuContext& ctx, const std::vector<std::string>& inputs, const std::vector<std::string>& outputs) : Effect(ctx, inputs, outputs), pipeline_(nullptr), bind_group_(nullptr), @@ -39,7 +39,7 @@ FlashEffect::FlashEffect(const GpuContext& ctx, dummy_texture_view_ = wgpuTextureCreateView(dummy_texture_, nullptr); } -FlashEffect::~FlashEffect() { +Flash::~Flash() { if (bind_group_) wgpuBindGroupRelease(bind_group_); if (pipeline_) wgpuRenderPipelineRelease(pipeline_); if (sampler_) wgpuSamplerRelease(sampler_); @@ -47,7 +47,7 @@ FlashEffect::~FlashEffect() { if (dummy_texture_) wgpuTextureRelease(dummy_texture_); } -void FlashEffect::render(WGPUCommandEncoder encoder, +void Flash::render(WGPUCommandEncoder encoder, const UniformsSequenceParams& params, NodeRegistry& nodes) { // Get output view (scene effects typically write to output, ignore input) diff --git a/src/effects/flash_effect.h b/src/effects/flash_effect.h index b9bbff8..9e7a326 100644 --- a/src/effects/flash_effect.h +++ b/src/effects/flash_effect.h @@ -5,12 +5,12 @@ #include "gpu/effect.h" #include "gpu/uniform_helper.h" -class FlashEffect : public Effect { +class Flash : public Effect { public: - FlashEffect(const GpuContext& ctx, + Flash(const GpuContext& ctx, const std::vector<std::string>& inputs, const std::vector<std::string>& outputs); - ~FlashEffect() override; + ~Flash() override; void render(WGPUCommandEncoder encoder, const UniformsSequenceParams& params, diff --git a/src/effects/gaussian_blur_effect.cc b/src/effects/gaussian_blur_effect.cc index adb094c..f2e0197 100644 --- a/src/effects/gaussian_blur_effect.cc +++ b/src/effects/gaussian_blur_effect.cc @@ -5,7 +5,7 @@ #include "gpu/post_process_helper.h" #include "gpu/shaders.h" -GaussianBlurEffect::GaussianBlurEffect(const GpuContext& ctx, +GaussianBlur::GaussianBlur(const GpuContext& ctx, const std::vector<std::string>& inputs, const std::vector<std::string>& outputs) : Effect(ctx, inputs, outputs), pipeline_(nullptr), bind_group_(nullptr), @@ -31,7 +31,7 @@ GaussianBlurEffect::GaussianBlurEffect(const GpuContext& ctx, uniforms_buffer_.init(ctx_.device); } -void GaussianBlurEffect::render(WGPUCommandEncoder encoder, +void GaussianBlur::render(WGPUCommandEncoder encoder, const UniformsSequenceParams& params, NodeRegistry& nodes) { // Get input/output views diff --git a/src/effects/gaussian_blur_effect.h b/src/effects/gaussian_blur_effect.h index 8bf34dc..6c8d8a4 100644 --- a/src/effects/gaussian_blur_effect.h +++ b/src/effects/gaussian_blur_effect.h @@ -14,9 +14,9 @@ struct GaussianBlurParams { static_assert(sizeof(GaussianBlurParams) == 16, "GaussianBlurParams must be 16 bytes"); -class GaussianBlurEffect : public Effect { +class GaussianBlur : public Effect { public: - GaussianBlurEffect(const GpuContext& ctx, + GaussianBlur(const GpuContext& ctx, const std::vector<std::string>& inputs, const std::vector<std::string>& outputs); diff --git a/src/effects/heptagon_effect.cc b/src/effects/heptagon_effect.cc index 303ab2a..755b6e3 100644 --- a/src/effects/heptagon_effect.cc +++ b/src/effects/heptagon_effect.cc @@ -6,7 +6,7 @@ #include "gpu/post_process_helper.h" #include "gpu/shaders.h" -HeptagonEffect::HeptagonEffect(const GpuContext& ctx, +Heptagon::Heptagon(const GpuContext& ctx, const std::vector<std::string>& inputs, const std::vector<std::string>& outputs) : Effect(ctx, inputs, outputs), pipeline_(nullptr), bind_group_(nullptr), sampler_(nullptr) { @@ -41,7 +41,7 @@ HeptagonEffect::HeptagonEffect(const GpuContext& ctx, dummy_texture_view_ = wgpuTextureCreateView(dummy_texture_, nullptr); } -HeptagonEffect::~HeptagonEffect() { +Heptagon::~Heptagon() { if (bind_group_) wgpuBindGroupRelease(bind_group_); if (pipeline_) wgpuRenderPipelineRelease(pipeline_); if (sampler_) wgpuSamplerRelease(sampler_); @@ -49,7 +49,7 @@ HeptagonEffect::~HeptagonEffect() { if (dummy_texture_) wgpuTextureRelease(dummy_texture_); } -void HeptagonEffect::render(WGPUCommandEncoder encoder, +void Heptagon::render(WGPUCommandEncoder encoder, const UniformsSequenceParams& params, NodeRegistry& nodes) { // Get output view (scene effects typically write to output, ignore input) diff --git a/src/effects/heptagon_effect.h b/src/effects/heptagon_effect.h index 9f148a1..fbc0b8c 100644 --- a/src/effects/heptagon_effect.h +++ b/src/effects/heptagon_effect.h @@ -5,11 +5,11 @@ #include "gpu/effect.h" #include "gpu/uniform_helper.h" -class HeptagonEffect : public Effect { +class Heptagon : public Effect { public: - HeptagonEffect(const GpuContext& ctx, const std::vector<std::string>& inputs, + Heptagon(const GpuContext& ctx, const std::vector<std::string>& inputs, const std::vector<std::string>& outputs); - ~HeptagonEffect(); + ~Heptagon(); void render(WGPUCommandEncoder encoder, const UniformsSequenceParams& params, NodeRegistry& nodes) override; diff --git a/src/effects/hybrid3_d_effect.cc b/src/effects/hybrid3_d_effect.cc index 0e6ea35..0e44853 100644 --- a/src/effects/hybrid3_d_effect.cc +++ b/src/effects/hybrid3_d_effect.cc @@ -1,12 +1,12 @@ // This file is part of the 64k demo project. -// It implements Hybrid3DEffect (simplified v2 port). +// It implements Hybrid3D (simplified v2 port). // TODO: Full Renderer3D integration with texture manager, noise assets #include "util/fatal_error.h" #include "effects/hybrid3_d_effect.h" #include <cmath> -Hybrid3DEffect::Hybrid3DEffect(const GpuContext& ctx, +Hybrid3D::Hybrid3D(const GpuContext& ctx, const std::vector<std::string>& inputs, const std::vector<std::string>& outputs) : Effect(ctx, inputs, outputs), depth_node_(outputs[0] + "_depth"), @@ -86,7 +86,7 @@ Hybrid3DEffect::Hybrid3DEffect(const GpuContext& ctx, } } -Hybrid3DEffect::~Hybrid3DEffect() { +Hybrid3D::~Hybrid3D() { if (dummy_texture_view_) wgpuTextureViewRelease(dummy_texture_view_); if (dummy_texture_) @@ -94,12 +94,12 @@ Hybrid3DEffect::~Hybrid3DEffect() { renderer_.shutdown(); } -void Hybrid3DEffect::declare_nodes(NodeRegistry& registry) { +void Hybrid3D::declare_nodes(NodeRegistry& registry) { // Declare depth buffer node registry.declare_node(depth_node_, NodeType::DEPTH24, -1, -1); } -void Hybrid3DEffect::render(WGPUCommandEncoder encoder, +void Hybrid3D::render(WGPUCommandEncoder encoder, const UniformsSequenceParams& params, NodeRegistry& nodes) { // Update camera (orbiting) diff --git a/src/effects/hybrid3_d_effect.h b/src/effects/hybrid3_d_effect.h index e6e0f49..7950374 100644 --- a/src/effects/hybrid3_d_effect.h +++ b/src/effects/hybrid3_d_effect.h @@ -9,12 +9,12 @@ #include "3d/scene.h" #include "gpu/effect.h" -class Hybrid3DEffect : public Effect { +class Hybrid3D : public Effect { public: - Hybrid3DEffect(const GpuContext& ctx, + Hybrid3D(const GpuContext& ctx, const std::vector<std::string>& inputs, const std::vector<std::string>& outputs); - ~Hybrid3DEffect() override; + ~Hybrid3D() override; void declare_nodes(NodeRegistry& registry) override; void render(WGPUCommandEncoder encoder, diff --git a/src/effects/particles_effect.cc b/src/effects/particles_effect.cc index b9e2b9c..f93133f 100644 --- a/src/effects/particles_effect.cc +++ b/src/effects/particles_effect.cc @@ -1,5 +1,5 @@ // This file is part of the 64k demo project. -// It implements the ParticlesEffect. +// It implements the Particles. #include "util/fatal_error.h" #include "effects/particles_effect.h" @@ -7,7 +7,7 @@ #include "gpu/shaders.h" #include <vector> -ParticlesEffect::ParticlesEffect(const GpuContext& ctx, +Particles::Particles(const GpuContext& ctx, const std::vector<std::string>& inputs, const std::vector<std::string>& outputs) : Effect(ctx, inputs, outputs) { @@ -63,7 +63,7 @@ ParticlesEffect::ParticlesEffect(const GpuContext& ctx, render_pass_.instance_count = NUM_PARTICLES; } -void ParticlesEffect::render(WGPUCommandEncoder encoder, +void Particles::render(WGPUCommandEncoder encoder, const UniformsSequenceParams& params, NodeRegistry& nodes) { // Update uniforms diff --git a/src/effects/particles_effect.h b/src/effects/particles_effect.h index 76c2ef4..174a6c7 100644 --- a/src/effects/particles_effect.h +++ b/src/effects/particles_effect.h @@ -18,9 +18,9 @@ struct Particle { float color[4]; }; -class ParticlesEffect : public Effect { +class Particles : public Effect { public: - ParticlesEffect(const GpuContext& ctx, + Particles(const GpuContext& ctx, const std::vector<std::string>& inputs, const std::vector<std::string>& outputs); void render(WGPUCommandEncoder encoder, diff --git a/src/effects/passthrough_effect.cc b/src/effects/passthrough_effect.cc index 56e3711..7c1cf09 100644 --- a/src/effects/passthrough_effect.cc +++ b/src/effects/passthrough_effect.cc @@ -5,7 +5,7 @@ #include "gpu/post_process_helper.h" #include "gpu/shaders.h" -PassthroughEffect::PassthroughEffect(const GpuContext& ctx, +Passthrough::Passthrough(const GpuContext& ctx, const std::vector<std::string>& inputs, const std::vector<std::string>& outputs) : Effect(ctx, inputs, outputs), pipeline_(nullptr), bind_group_(nullptr), @@ -31,7 +31,7 @@ PassthroughEffect::PassthroughEffect(const GpuContext& ctx, sampler_ = wgpuDeviceCreateSampler(ctx_.device, &sampler_desc); } -void PassthroughEffect::render(WGPUCommandEncoder encoder, +void Passthrough::render(WGPUCommandEncoder encoder, const UniformsSequenceParams& params, NodeRegistry& nodes) { // Get input/output views diff --git a/src/effects/passthrough_effect.h b/src/effects/passthrough_effect.h index 125ac5a..88c623b 100644 --- a/src/effects/passthrough_effect.h +++ b/src/effects/passthrough_effect.h @@ -5,9 +5,9 @@ #include "gpu/effect.h" #include "gpu/uniform_helper.h" -class PassthroughEffect : public Effect { +class Passthrough : public Effect { public: - PassthroughEffect(const GpuContext& ctx, const std::vector<std::string>& inputs, + Passthrough(const GpuContext& ctx, const std::vector<std::string>& inputs, const std::vector<std::string>& outputs); void render(WGPUCommandEncoder encoder, const UniformsSequenceParams& params, diff --git a/src/effects/peak_meter_effect.cc b/src/effects/peak_meter_effect.cc index 692d851..124c59b 100644 --- a/src/effects/peak_meter_effect.cc +++ b/src/effects/peak_meter_effect.cc @@ -5,7 +5,7 @@ #include "gpu/shader_composer.h" #include "util/fatal_error.h" -PeakMeterEffect::PeakMeterEffect(const GpuContext& ctx, +PeakMeter::PeakMeter(const GpuContext& ctx, const std::vector<std::string>& inputs, const std::vector<std::string>& outputs) : Effect(ctx, inputs, outputs), pipeline_(nullptr), bind_group_(nullptr) { @@ -63,12 +63,12 @@ PeakMeterEffect::PeakMeterEffect(const GpuContext& ctx, shader_code.c_str()); } -PeakMeterEffect::~PeakMeterEffect() { +PeakMeter::~PeakMeter() { if (bind_group_) wgpuBindGroupRelease(bind_group_); if (pipeline_) wgpuRenderPipelineRelease(pipeline_); } -void PeakMeterEffect::render(WGPUCommandEncoder encoder, +void PeakMeter::render(WGPUCommandEncoder encoder, const UniformsSequenceParams& params, NodeRegistry& nodes) { WGPUTextureView input_view = nodes.get_view(input_nodes_[0]); diff --git a/src/effects/peak_meter_effect.h b/src/effects/peak_meter_effect.h index 905bcda..ea1cce5 100644 --- a/src/effects/peak_meter_effect.h +++ b/src/effects/peak_meter_effect.h @@ -5,12 +5,12 @@ #include "gpu/effect.h" #include "gpu/uniform_helper.h" -class PeakMeterEffect : public Effect { +class PeakMeter : public Effect { public: - PeakMeterEffect(const GpuContext& ctx, + PeakMeter(const GpuContext& ctx, const std::vector<std::string>& inputs, const std::vector<std::string>& outputs); - ~PeakMeterEffect() override; + ~PeakMeter() override; void render(WGPUCommandEncoder encoder, const UniformsSequenceParams& params, diff --git a/src/effects/placeholder_effect.cc b/src/effects/placeholder_effect.cc index d8852da..6127e0c 100644 --- a/src/effects/placeholder_effect.cc +++ b/src/effects/placeholder_effect.cc @@ -6,7 +6,7 @@ #include "gpu/shaders.h" #include <cstdio> -PlaceholderEffect::PlaceholderEffect(const GpuContext& ctx, +Placeholder::Placeholder(const GpuContext& ctx, const std::vector<std::string>& inputs, const std::vector<std::string>& outputs, const char* placeholder_name) @@ -33,7 +33,7 @@ PlaceholderEffect::PlaceholderEffect(const GpuContext& ctx, sampler_ = wgpuDeviceCreateSampler(ctx_.device, &sampler_desc); } -void PlaceholderEffect::render(WGPUCommandEncoder encoder, +void Placeholder::render(WGPUCommandEncoder encoder, const UniformsSequenceParams& params, NodeRegistry& nodes) { WGPUTextureView input_view = nodes.get_view(input_nodes_[0]); diff --git a/src/effects/placeholder_effect.h b/src/effects/placeholder_effect.h index f7917ab..eaa1f6e 100644 --- a/src/effects/placeholder_effect.h +++ b/src/effects/placeholder_effect.h @@ -6,9 +6,9 @@ #include "gpu/effect.h" #include "gpu/uniform_helper.h" -class PlaceholderEffect : public Effect { +class Placeholder : public Effect { public: - PlaceholderEffect(const GpuContext& ctx, const std::vector<std::string>& inputs, + Placeholder(const GpuContext& ctx, const std::vector<std::string>& inputs, const std::vector<std::string>& outputs, const char* placeholder_name = "UnknownEffect"); diff --git a/src/effects/rotating_cube_effect.cc b/src/effects/rotating_cube_effect.cc index 57f0a83..1f56b8b 100644 --- a/src/effects/rotating_cube_effect.cc +++ b/src/effects/rotating_cube_effect.cc @@ -1,5 +1,5 @@ // This file is part of the 64k demo project. -// It implements RotatingCubeEffect (simplified v2 port). +// It implements RotatingCube (simplified v2 port). #include "util/fatal_error.h" #include "effects/rotating_cube_effect.h" @@ -7,7 +7,7 @@ #include "gpu/gpu.h" #include "gpu/shaders.h" -RotatingCubeEffect::RotatingCubeEffect(const GpuContext& ctx, +RotatingCube::RotatingCube(const GpuContext& ctx, const std::vector<std::string>& inputs, const std::vector<std::string>& outputs) : Effect(ctx, inputs, outputs), depth_node_(outputs[0] + "_depth") { @@ -100,19 +100,19 @@ RotatingCubeEffect::RotatingCubeEffect(const GpuContext& ctx, wgpuBindGroupLayoutRelease(bgl); } -RotatingCubeEffect::~RotatingCubeEffect() { +RotatingCube::~RotatingCube() { if (bind_group_) wgpuBindGroupRelease(bind_group_); if (pipeline_) wgpuRenderPipelineRelease(pipeline_); } -void RotatingCubeEffect::declare_nodes(NodeRegistry& registry) { +void RotatingCube::declare_nodes(NodeRegistry& registry) { // Declare depth buffer node registry.declare_node(depth_node_, NodeType::DEPTH24, -1, -1); } -void RotatingCubeEffect::render(WGPUCommandEncoder encoder, +void RotatingCube::render(WGPUCommandEncoder encoder, const UniformsSequenceParams& params, NodeRegistry& nodes) { rotation_ += 0.016f * 1.5f; diff --git a/src/effects/rotating_cube_effect.h b/src/effects/rotating_cube_effect.h index 1c0155a..bdcf180 100644 --- a/src/effects/rotating_cube_effect.h +++ b/src/effects/rotating_cube_effect.h @@ -8,12 +8,12 @@ #include "gpu/uniform_helper.h" #include "util/mini_math.h" -class RotatingCubeEffect : public Effect { +class RotatingCube : public Effect { public: - RotatingCubeEffect(const GpuContext& ctx, + RotatingCube(const GpuContext& ctx, const std::vector<std::string>& inputs, const std::vector<std::string>& outputs); - ~RotatingCubeEffect() override; + ~RotatingCube() override; void declare_nodes(NodeRegistry& registry) override; void render(WGPUCommandEncoder encoder, |
