diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-16 14:32:59 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-16 14:32:59 +0100 |
| commit | b2ede3f0680edc894a54e28374cb87ab2690afa2 (patch) | |
| tree | 69e0a8c04eb29be953b037eb98e0a9ac0f1b417a /src/tests/gpu/test_demo_effects.cc | |
| parent | 0fd3c982247d05bacbd67db08c865ec67602437f (diff) | |
refactor: remove v2 versioning artifacts, establish Sequence as canonical system
Complete v1→v2 migration cleanup: rename 29 files (sequence_v2→sequence, effect_v2→effect, 14 effect files, 8 shaders, compiler, docs), update all class names and references across 54 files. Archive v1 timeline. System now uses standard naming with all versioning removed. 30/34 tests passing.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/tests/gpu/test_demo_effects.cc')
| -rw-r--r-- | src/tests/gpu/test_demo_effects.cc | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/tests/gpu/test_demo_effects.cc b/src/tests/gpu/test_demo_effects.cc index 02aee78..7bba831 100644 --- a/src/tests/gpu/test_demo_effects.cc +++ b/src/tests/gpu/test_demo_effects.cc @@ -14,7 +14,7 @@ #include <vector> // Helper: Test v2 effect construction -static int test_effect_v2(const char* name, std::shared_ptr<EffectV2> effect) { +static int test_effect(const char* name, std::shared_ptr<Effect> effect) { fprintf(stdout, " Testing %s...\n", name); if (!effect) { @@ -27,7 +27,7 @@ static int test_effect_v2(const char* name, std::shared_ptr<EffectV2> effect) { } // Test all available v2 effects -static void test_v2_effects() { +static void test_effects() { fprintf(stdout, "Testing V2 effects...\n"); WebGPUTestFixture fixture; @@ -36,40 +36,40 @@ static void test_v2_effects() { return; } - std::vector<std::pair<const char*, std::shared_ptr<EffectV2>>> effects = { - {"PassthroughEffectV2", - std::make_shared<PassthroughEffectV2>( + std::vector<std::pair<const char*, std::shared_ptr<Effect>>> effects = { + {"PassthroughEffect", + std::make_shared<PassthroughEffect>( fixture.ctx(), std::vector<std::string>{"source"}, std::vector<std::string>{"sink"})}, - {"GaussianBlurEffectV2", - std::make_shared<GaussianBlurEffectV2>( + {"GaussianBlurEffect", + std::make_shared<GaussianBlurEffect>( fixture.ctx(), std::vector<std::string>{"source"}, std::vector<std::string>{"sink"})}, - {"PlaceholderEffectV2", - std::make_shared<PlaceholderEffectV2>( + {"PlaceholderEffect", + std::make_shared<PlaceholderEffect>( fixture.ctx(), std::vector<std::string>{"source"}, std::vector<std::string>{"sink"})}, - {"HeptagonEffectV2", - std::make_shared<HeptagonEffectV2>( + {"HeptagonEffect", + std::make_shared<HeptagonEffect>( fixture.ctx(), std::vector<std::string>{"source"}, std::vector<std::string>{"sink"})}, - {"ParticlesEffectV2", - std::make_shared<ParticlesEffectV2>( + {"ParticlesEffect", + std::make_shared<ParticlesEffect>( fixture.ctx(), std::vector<std::string>{"source"}, std::vector<std::string>{"sink"})}, - {"RotatingCubeEffectV2", - std::make_shared<RotatingCubeEffectV2>( + {"RotatingCubeEffect", + std::make_shared<RotatingCubeEffect>( fixture.ctx(), std::vector<std::string>{"source"}, std::vector<std::string>{"sink"})}, - {"Hybrid3DEffectV2", - std::make_shared<Hybrid3DEffectV2>( + {"Hybrid3DEffect", + std::make_shared<Hybrid3DEffect>( fixture.ctx(), std::vector<std::string>{"source"}, std::vector<std::string>{"sink"})}, }; int passed = 0; for (const auto& [name, effect] : effects) { - passed += test_effect_v2(name, effect); + passed += test_effect(name, effect); } fprintf(stdout, " ✓ %d/%zu V2 effects tested\n", passed, effects.size()); @@ -81,7 +81,7 @@ int main() { extern void InitShaderComposer(); InitShaderComposer(); - test_v2_effects(); + test_effects(); fprintf(stdout, "=== All Tests Passed ===\n"); return 0; |
