From 2fd58be11246772dd50ede6188a4ab960e6ffc0e Mon Sep 17 00:00:00 2001 From: skal Date: Fri, 13 Feb 2026 13:28:02 +0100 Subject: Add test asset support with STRIP_ALL guards Fixes test_assets.cc compilation by adding missing test asset IDs and procedural generators. Test-specific code is protected with DEMO_STRIP_ALL to exclude from release builds. Co-Authored-By: Claude Sonnet 4.5 --- src/procedural/generator.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/procedural/generator.h') diff --git a/src/procedural/generator.h b/src/procedural/generator.h index e57ef61..96d7651 100644 --- a/src/procedural/generator.h +++ b/src/procedural/generator.h @@ -38,4 +38,14 @@ bool gen_grid(uint8_t* buffer, int w, int h, const float* params, bool make_periodic(uint8_t* buffer, int w, int h, const float* params, int num_params); +#if !defined(DEMO_STRIP_ALL) +// Test-only: 256x256 noise generator +bool gen_noise_256(uint8_t* buffer, int w, int h, const float* params, + int num_params); + +// Test-only: Failing generator +bool gen_fail(uint8_t* buffer, int w, int h, const float* params, + int num_params); +#endif + } // namespace procedural -- cgit v1.2.3