summaryrefslogtreecommitdiff
path: root/workspaces
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-13 13:28:02 +0100
committerskal <pascal.massimino@gmail.com>2026-02-13 13:28:02 +0100
commit2fd58be11246772dd50ede6188a4ab960e6ffc0e (patch)
tree18aaf8c682b902754bc0cf053526d7cca7fcc726 /workspaces
parent8a41ac7cb95c65d68892810d89c9c80a0463f06d (diff)
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 <noreply@anthropic.com>
Diffstat (limited to 'workspaces')
-rw-r--r--workspaces/test/assets.txt7
-rw-r--r--workspaces/test/test_assets/test_asset_1.txt1
-rw-r--r--workspaces/test/test_assets/test_image.pngbin0 -> 82 bytes
-rw-r--r--workspaces/test/test_assets/test_image.tgabin0 -> 34 bytes
4 files changed, 8 insertions, 0 deletions
diff --git a/workspaces/test/assets.txt b/workspaces/test/assets.txt
index c9d077a..1389993 100644
--- a/workspaces/test/assets.txt
+++ b/workspaces/test/assets.txt
@@ -61,3 +61,10 @@ SHADER_COMPUTE_GEN_MASK, NONE, ../../common/shaders/compute/gen_mask.wgsl, "GPU
CIRCLE_MASK_COMPUTE_SHADER, NONE, shaders/circle_mask_compute.wgsl, "Circle mask compute shader"
CIRCLE_MASK_RENDER_SHADER, NONE, shaders/circle_mask_render.wgsl, "Circle mask render shader"
MASKED_CUBE_SHADER, NONE, shaders/masked_cube.wgsl, "Masked cube shader"
+
+# --- Test Assets (for test_assets.cc) ---
+TEST_ASSET_1, NONE, test_assets/test_asset_1.txt, "Test static asset"
+TEST_IMAGE, NONE, test_assets/test_image.png, "Test 2x2 RGBA PNG image"
+PROC_NOISE_256, PROC(gen_noise_256, 42, 0), _, "Procedural 256x256 noise"
+PROC_UNKNOWN, PROC(unknown_func, 0, 0), _, "Unknown procedural function"
+PROC_FAIL, PROC(gen_fail, 0, 0), _, "Failing procedural function"
diff --git a/workspaces/test/test_assets/test_asset_1.txt b/workspaces/test/test_assets/test_asset_1.txt
new file mode 100644
index 0000000..ce6fe83
--- /dev/null
+++ b/workspaces/test/test_assets/test_asset_1.txt
@@ -0,0 +1 @@
+This is a test asset file.
diff --git a/workspaces/test/test_assets/test_image.png b/workspaces/test/test_assets/test_image.png
new file mode 100644
index 0000000..3dd3fe7
--- /dev/null
+++ b/workspaces/test/test_assets/test_image.png
Binary files differ
diff --git a/workspaces/test/test_assets/test_image.tga b/workspaces/test/test_assets/test_image.tga
new file mode 100644
index 0000000..21009e9
--- /dev/null
+++ b/workspaces/test/test_assets/test_image.tga
Binary files differ