summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-16 12:42:57 +0100
committerskal <pascal.massimino@gmail.com>2026-02-16 12:42:57 +0100
commitf03f3428991499e0701cce5eacc2bb943fde9d8e (patch)
tree0ef9add720fdd030416164c4f61c8c47536cb8f3 /tools
parent7a383635525c9f9617965f3c79a9f2d6c86550cd (diff)
fix(tests): port tests to v2 API, fix FATAL_CHECK logic
- Port test_effect_base to EffectV2/SequenceV2 - Port test_demo_effects to v2 effects only - Remove v1 lifecycle helpers from effect_test_helpers - Fix cnn_test to not depend on cnn_v1_effect.h - Fix test_sequence_v2_e2e node redeclaration Known issue: test_sequence_v2_e2e still fails with bind group error (needs source/sink texture views set) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/cnn_test.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/cnn_test.cc b/tools/cnn_test.cc
index 25e27e8..d88956d 100644
--- a/tools/cnn_test.cc
+++ b/tools/cnn_test.cc
@@ -5,7 +5,6 @@
#error "cnn_test requires STRIP_ALL=OFF (tool builds only)"
#endif
-#include "../cnn_v1/src/cnn_v1_effect.h"
#include "generated/assets.h"
#include "gpu/bind_group_builder.h"
#include "gpu/gpu.h"
@@ -30,6 +29,14 @@
#include <cstring>
#include <vector>
+// CNN v1 structures
+struct CNNv1LayerParams {
+ int layer_index;
+ float blend_amount;
+ float _pad[2];
+};
+static_assert(sizeof(CNNv1LayerParams) == 16);
+
// Helper to get asset string or empty string
static const char* SafeGetAsset(AssetId id) {
const uint8_t* data = GetAsset(id);