summaryrefslogtreecommitdiff
path: root/cmake/DemoTests.cmake
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-16 16:16:13 +0100
committerskal <pascal.massimino@gmail.com>2026-02-16 16:16:13 +0100
commita3583f4c704bb14e02f49cade6996e215d0ee6b4 (patch)
tree340258c6791ac56ce54bc144befe83af4b0c5fea /cmake/DemoTests.cmake
parent6ac4fa8fb8c045232575036f4a140b9a0ec1995a (diff)
feat: Add FlashEffect for audio/visual sync testing
- FlashEffect: Beat-synchronized white flash using ShaderComposer - Loads shader from assets (flash.wgsl) with sequence_uniforms include - Uses pow(1.0 - beat_phase, 4.0) for sharp flash at beat start - Updated test_demo.seq to use FlashEffect (was HeptagonEffect) - Added FlashEffect to test suite (test_demo_effects.cc) - Made cnn_test conditional on main workspace (fixes build error) - Flash intensity: 1.0 at beat start, fades to 0.0 by beat end Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'cmake/DemoTests.cmake')
-rw-r--r--cmake/DemoTests.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/DemoTests.cmake b/cmake/DemoTests.cmake
index b24d9e2..dc88973 100644
--- a/cmake/DemoTests.cmake
+++ b/cmake/DemoTests.cmake
@@ -197,8 +197,8 @@ add_demo_test(test_gpu_procedural GpuProceduralTest gpu
target_link_libraries(test_gpu_procedural PRIVATE 3d gpu audio procedural util ${DEMO_LIBS})
demo_add_asset_deps(test_gpu_procedural shaders)
-# CNN shader testing tool (only when STRIP_ALL is OFF)
-if(NOT DEMO_STRIP_ALL)
+# CNN shader testing tool (only when STRIP_ALL is OFF and workspace is main)
+if(NOT DEMO_STRIP_ALL AND DEMO_WORKSPACE STREQUAL "main")
add_executable(cnn_test
tools/cnn_test.cc
src/tests/common/webgpu_test_fixture.cc