From f03f3428991499e0701cce5eacc2bb943fde9d8e Mon Sep 17 00:00:00 2001 From: skal Date: Mon, 16 Feb 2026 12:42:57 +0100 Subject: 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 --- tools/cnn_test.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tools') 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 #include +// 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); -- cgit v1.2.3