summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/cnn_test.cc8
-rw-r--r--tools/cnn_v2_test/README.md2
-rw-r--r--tools/shadertoy/README.md10
-rwxr-xr-xtools/shadertoy/convert_shadertoy.py20
-rw-r--r--tools/shadertoy/template.cc4
-rw-r--r--tools/shadertoy/template.h2
6 files changed, 23 insertions, 23 deletions
diff --git a/tools/cnn_test.cc b/tools/cnn_test.cc
index 1d736d9..740f41d 100644
--- a/tools/cnn_test.cc
+++ b/tools/cnn_test.cc
@@ -11,10 +11,10 @@
#include "gpu/pipeline_builder.h"
#include "gpu/sampler_cache.h"
#include "gpu/texture_readback.h"
-#include "gpu/effects/post_process_helper.h"
-#include "gpu/effects/cnn_effect.h"
-#include "gpu/effects/shader_composer.h"
-#include "gpu/effects/shaders.h"
+#include "gpu/post_process_helper.h"
+#include "effects/cnn_effect.h"
+#include "gpu/shader_composer.h"
+#include "gpu/shaders.h"
#include "tests/common/webgpu_test_fixture.h"
#include "tests/common/offscreen_render_target.h"
#include "generated/assets.h"
diff --git a/tools/cnn_v2_test/README.md b/tools/cnn_v2_test/README.md
index b9439e5..d41a00f 100644
--- a/tools/cnn_v2_test/README.md
+++ b/tools/cnn_v2_test/README.md
@@ -248,4 +248,4 @@ Planned enhancements:
- `doc/CNN_V2.md` - Architecture and design
- `doc/HOWTO.md` - Training workflows
- `training/export_cnn_v2_weights.py` - Binary format
-- `src/gpu/effects/cnn_v2_effect.cc` - C++ reference implementation
+- `src/effects/cnn_v2_effect.cc` - C++ reference implementation
diff --git a/tools/shadertoy/README.md b/tools/shadertoy/README.md
index 283a65f..1ce42e8 100644
--- a/tools/shadertoy/README.md
+++ b/tools/shadertoy/README.md
@@ -44,8 +44,8 @@ EOF
# Choose effect name (e.g., "tunnel", "plasma", "warp")
EFFECT_NAME="myeffect"
-cp tools/shadertoy/template.h src/gpu/effects/${EFFECT_NAME}_effect.h
-cp tools/shadertoy/template.cc src/gpu/effects/${EFFECT_NAME}_effect.cc
+cp tools/shadertoy/template.h src/effects/${EFFECT_NAME}_effect.h
+cp tools/shadertoy/template.cc src/effects/${EFFECT_NAME}_effect.cc
cp tools/shadertoy/template.wgsl workspaces/main/shaders/${EFFECT_NAME}.wgsl
```
@@ -94,7 +94,7 @@ shaders/myeffect.wgsl
In `src/gpu/demo_effects.h`:
```cpp
-#include "gpu/effects/myeffect_effect.h"
+#include "effects/myeffect_effect.h"
```
In `workspaces/main/timeline.seq`:
@@ -107,7 +107,7 @@ SEQUENCE 0.0 0
Add effect source to `CMakeLists.txt` GPU_SOURCES (both headless and normal mode sections):
```cmake
-src/gpu/effects/myeffect_effect.cc
+src/effects/myeffect_effect.cc
```
### 8. Update Tests
@@ -201,4 +201,4 @@ Always available in `uniforms: CommonUniforms`:
- See `doc/CONTRIBUTING.md` for commit policy
- See `doc/SEQUENCE.md` for timeline syntax
-- See existing effects in `src/gpu/effects/` for examples
+- See existing effects in `src/effects/` for examples
diff --git a/tools/shadertoy/convert_shadertoy.py b/tools/shadertoy/convert_shadertoy.py
index e85f384..ad4c310 100755
--- a/tools/shadertoy/convert_shadertoy.py
+++ b/tools/shadertoy/convert_shadertoy.py
@@ -10,8 +10,8 @@
# ./tools/shadertoy/convert_shadertoy.py tools/shadertoy/example.txt Rainbow
#
# Generates:
-# - src/gpu/effects/<effect>_effect.h
-# - src/gpu/effects/<effect>_effect.cc
+# - src/effects/<effect>_effect.h
+# - src/effects/<effect>_effect.cc
# - workspaces/main/shaders/<effect>.wgsl
#
# The script performs basic ShaderToy→WGSL conversion:
@@ -150,7 +150,7 @@ def generate_header(effect_name, is_post_process=False):
#define {upper_name}_EFFECT_H_
#include "gpu/effect.h"
-#include "gpu/effects/post_process_helper.h"
+#include "gpu/post_process_helper.h"
class {class_name} : public PostProcessEffect {{
public:
@@ -197,7 +197,7 @@ def generate_implementation(effect_name, is_post_process=False):
// Generated by convert_shadertoy.py
#include "gpu/demo_effects.h"
-#include "gpu/effects/post_process_helper.h"
+#include "gpu/post_process_helper.h"
#include "gpu/gpu.h"
{class_name}::{class_name}(const GpuContext& ctx) : PostProcessEffect(ctx) {{
@@ -309,8 +309,8 @@ def main():
print(" --shader-only Only regenerate .wgsl shader (skip .h/.cc files)")
print()
print("This will generate:")
- print(" src/gpu/effects/<effect>_effect.h")
- print(" src/gpu/effects/<effect>_effect.cc")
+ print(" src/effects/<effect>_effect.h")
+ print(" src/effects/<effect>_effect.cc")
print(" workspaces/main/shaders/<effect>.wgsl")
sys.exit(1)
@@ -370,20 +370,20 @@ 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/effects/shaders.h:")
+ print("2. Add shader declaration to src/gpu/shaders.h:")
print(f" extern const char* {snake_name}_shader_wgsl;")
print()
- print("3. Add shader definition to src/gpu/effects/shaders.cc:")
+ print("3. Add shader definition to src/gpu/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:")
- print(f' #include "gpu/effects/{snake_name}_effect.h"')
+ print(f' #include "effects/{snake_name}_effect.h"')
print()
print("5. Add to timeline in workspaces/main/timeline.seq:")
print(f" EFFECT + {effect_name}Effect 0.0 10.0")
print()
print("6. Add to CMakeLists.txt GPU_SOURCES (both headless and normal mode):")
- print(f" src/gpu/effects/{snake_name}_effect.cc")
+ print(f" src/effects/{snake_name}_effect.cc")
print()
print("7. Update src/tests/gpu/test_demo_effects.cc:")
test_list = "post_process_effects" if is_post_process else "scene_effects"
diff --git a/tools/shadertoy/template.cc b/tools/shadertoy/template.cc
index 288283d..35c9b10 100644
--- a/tools/shadertoy/template.cc
+++ b/tools/shadertoy/template.cc
@@ -2,8 +2,8 @@
// ShaderToy effect implementation - REPLACE THIS LINE
// TODO: Update description, rename class
-#include "gpu/effects/shadertoy_effect.h"
-#include "gpu/effects/shader_composer.h"
+#include "effects/shadertoy_effect.h"
+#include "gpu/shader_composer.h"
#include "generated/assets.h"
// TODO: Rename class and adjust constructor parameters
diff --git a/tools/shadertoy/template.h b/tools/shadertoy/template.h
index 2e4af5f..82f8b39 100644
--- a/tools/shadertoy/template.h
+++ b/tools/shadertoy/template.h
@@ -6,7 +6,7 @@
#define SHADERTOY_EFFECT_H_
#include "gpu/effect.h"
-#include "gpu/effects/post_process_helper.h"
+#include "gpu/post_process_helper.h"
#include "gpu/uniform_helper.h"
// TODO: Rename class to match your effect (e.g., TunnelEffect, PlasmaEffect)