summaryrefslogtreecommitdiffstats
path: root/test_buffer.sh
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2026-04-22 11:52:07 +0000
committers-ol <s+removethis@s-ol.nu>2026-05-14 15:00:13 +0000
commit76e48cc66816a1ec064c12a7181b7751d1c783b2 (patch)
tree7368d6ab24518d25eea7e6cf1bf8559519121cb7 /test_buffer.sh
parentrebind outdated textures (diff)
downloadwgsl-view-76e48cc66816a1ec064c12a7181b7751d1c783b2.tar.gz
wgsl-view-76e48cc66816a1ec064c12a7181b7751d1c783b2.zip
switch to WESL shaders
Diffstat (limited to 'test_buffer.sh')
-rwxr-xr-xtest_buffer.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/test_buffer.sh b/test_buffer.sh
index e3e6520..20d32e6 100755
--- a/test_buffer.sh
+++ b/test_buffer.sh
@@ -45,16 +45,17 @@ fn fs_main(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> {
'
oscsend "$HOST" "$PORT" /texture/tex1 s "$TSV_SRC"
oscsend "$HOST" "$PORT" /sampler/samp1 ss nearest repeat
-oscsend "$HOST" "$PORT" /shader s "$SHADER"
-oscsend "$HOST" "$PORT" /binding/video s /texture/tex1
-oscsend "$HOST" "$PORT" /binding/s s /sampler/samp1
+oscsend "$HOST" "$PORT" /module/package::main s "$SHADER"
+oscsend "$HOST" "$PORT" /entrypoint s package::main
+oscsend "$HOST" "$PORT" /binding/package::main/video s /texture/tex1
+oscsend "$HOST" "$PORT" /binding/package::main/s s /sampler/samp1
spawn tsv-view
echo "Playing video buffer (Ctrl+C to stop)..."
T=0
while true; do
- oscsend "$HOST" "$PORT" /uniform/time f "$T"
+ oscsend "$HOST" "$PORT" /uniform/package::main/time f "$T"
T=$((T+1 % 60))
sleep 0.016
done