MCPcopy Index your code
hub / github.com/Rust-GPU/rust-gpu-shadertoys

github.com/Rust-GPU/rust-gpu-shadertoys @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
471 symbols 1,259 edges 34 files 61 documented · 13%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

shadertoy.com shaders ported to Rust-GPU

shadertoys image

How to run

Run cargo run --release and a window will pop up with 28 different animations in it. (Two squares on the bottom right-hand side are empty.) That's it!

License

Rust-GPU is dual-licensed under Apache-2.0/MIT

Individual shaders are licensed according to the original shadertoy.com entry
(see each file's documentation comment for more details).

Extension points exported contracts — how you extend this code

VecExt (Interface)
(no doc) [3 implementers]
shared/src/lib.rs
SampleCube (Interface)
(no doc) [2 implementers]
shaders/src/lib.rs
FloatExt (Interface)
(no doc) [1 implementers]
shared/src/lib.rs

Core symbols most depended-on inside this repo

sin
called by 151
shared/src/lib.rs
mix
called by 128
shared/src/lib.rs
cos
called by 119
shared/src/lib.rs
sprrow
called by 90
shaders/src/flappy_bird.rs
fract_gl
called by 80
shared/src/lib.rs
rgb
called by 64
shaders/src/flappy_bird.rs
saturate
called by 56
shaders/src/skyline.rs
rem_euclid
called by 56
shared/src/lib.rs

Shape

Function 228
Method 177
Class 63
Interface 3

Languages

Rust100%

Modules by API surface

shaders/src/geodesic_tiling.rs50 symbols
shaders/src/raymarching_primitives.rs38 symbols
shaders/src/luminescence.rs34 symbols
shaders/src/flappy_bird.rs34 symbols
shaders/src/skyline.rs33 symbols
shaders/src/bubble_buckey_balls.rs28 symbols
shaders/src/tokyo.rs23 symbols
shaders/src/on_off_spikes.rs22 symbols
shared/src/lib.rs17 symbols
shaders/src/seascape.rs17 symbols
shaders/src/filtering_procedurals.rs15 symbols
shaders/src/atmosphere_system_test.rs15 symbols

For agents

$ claude mcp add rust-gpu-shadertoys \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact