summaryrefslogtreecommitdiff
path: root/src/tests/gpu/test_demo_effects.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/gpu/test_demo_effects.cc')
-rw-r--r--src/tests/gpu/test_demo_effects.cc38
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;