#shader #glsl #graphics #rendering #language

app rpuc

This is the standalone compiler for RPU, a GLSL-compatible language for rendering procedural graphics on the CPU

6 releases

0.3.0 May 13, 2024
0.2.5 May 7, 2024

#676 in Graphics APIs

Download history 325/week @ 2024-04-30 274/week @ 2024-05-07 49/week @ 2024-05-14 5/week @ 2024-05-21 3/week @ 2024-05-28

143 downloads per month

MIT license

345KB
8K SLoC

header

RPU is a GLSL compatible programming language for rendering procedural graphics on the CPU.

For more information visit rpu-lang.org.

Usage

Run rpuc with the source file, the function to execute and the optional argument:

rpuc --source examples/fib.rpu --function main --argument 10

this will return [I64(55)] which is the 10th Fibonacci number.

To execute a shader use

rpuc --source examples/raymarch.rpu --function shader. The resulting image will be saved as examples/raymarch.png.

For shaders you can specify the tile size with --tiled 100x100 (default is 80x80), and the number of iterations (in case your shader is a pathtracer) with --iterations 100 (default is 1).

Dependencies

~14–27MB
~251K SLoC