summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-09 13:52:37 +0100
committerskal <pascal.massimino@gmail.com>2026-02-09 13:52:37 +0100
commitc712874ece1ca7073904f5fb84cc866d28084de0 (patch)
treef46727b58d3ac0e4ba3f36d50ea147c086282232 /CMakeLists.txt
parent0151a43cd179bd08584347e13327a3a722bddf2a (diff)
feat(gpu): Add GPU procedural texture generation system
Phase 1 implementation complete: - GPU compute shader for noise generation (gen_noise.wgsl) - TextureManager extensions: create_gpu_noise_texture(), dispatch_noise_compute() - Asset packer PROC_GPU() syntax support with validation - ShaderComposer integration for #include resolution - Zero CPU memory overhead (GPU-only textures) - Init-time and on-demand generation modes Technical details: - 8×8 workgroup size for 256×256 textures - UniformBuffer for params (width, height, seed, frequency) - Storage texture binding (rgba8unorm, write-only) - Lazy pipeline compilation on first use - ~300 bytes code (Phase 1) Testing: - New test: test_gpu_procedural.cc (passes) - All 34 tests passing (100%) Future phases: - Phase 2: Add gen_perlin, gen_grid compute shaders - Phase 3: Variable dimensions, async generation Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e90cb4a..26818c3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -593,6 +593,14 @@ if(DEMO_BUILD_TESTS)
target_link_libraries(test_texture_manager PRIVATE 3d gpu audio procedural util ${DEMO_LIBS})
add_dependencies(test_texture_manager generate_demo_assets)
+ # GPU Procedural Texture Test
+ add_demo_test(test_gpu_procedural GpuProceduralTest
+ src/tests/test_gpu_procedural.cc
+ ${PLATFORM_SOURCES}
+ ${GEN_DEMO_CC})
+ target_link_libraries(test_gpu_procedural PRIVATE 3d gpu audio procedural util ${DEMO_LIBS})
+ add_dependencies(test_gpu_procedural generate_demo_assets)
+
# Gantt chart output test (bash script)
add_test(
NAME GanttOutputTest