From 50350344d289c3389161cd6914c57f88d1a04dcc Mon Sep 17 00:00:00 2001 From: skal Date: Tue, 17 Feb 2026 08:12:05 +0100 Subject: refactor: move shaders.{h,cc} to src/effects and remove v2 suffix - Removed unused v1 shader declarations (13 variables) - Removed _v2 suffix from active shader names - Moved shaders.{h,cc} from src/gpu to src/effects - Updated all includes and build references - All tests pass (34/34) handoff(Claude): Cleaned up shader management, tests passing --- tools/cnn_test.cc | 2 +- tools/shadertoy/convert_shadertoy.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/cnn_test.cc b/tools/cnn_test.cc index a209cdf..2f7168e 100644 --- a/tools/cnn_test.cc +++ b/tools/cnn_test.cc @@ -12,7 +12,7 @@ #include "gpu/post_process_helper.h" #include "gpu/sampler_cache.h" #include "gpu/shader_composer.h" -#include "gpu/shaders.h" +#include "effects/shaders.h" #include "gpu/texture_readback.h" #include "platform/platform.h" #include "tests/common/offscreen_render_target.h" diff --git a/tools/shadertoy/convert_shadertoy.py b/tools/shadertoy/convert_shadertoy.py index ad4c310..362de6c 100755 --- a/tools/shadertoy/convert_shadertoy.py +++ b/tools/shadertoy/convert_shadertoy.py @@ -370,10 +370,10 @@ def main(): print(f" SHADER_{upper_name}, NONE, shaders/{snake_name}.wgsl, \"{effect_name} effect\"") print() print() - print("2. Add shader declaration to src/gpu/shaders.h:") + print("2. Add shader declaration to src/effects/shaders.h:") print(f" extern const char* {snake_name}_shader_wgsl;") print() - print("3. Add shader definition to src/gpu/shaders.cc:") + print("3. Add shader definition to src/effects/shaders.cc:") print(f" const char* {snake_name}_shader_wgsl = SafeGetAsset(AssetId::ASSET_SHADER_{upper_name});") print() print("4. Include header in src/gpu/demo_effects.h:") -- cgit v1.2.3