#shader-compiler #graphics #glsl #rendering #shader #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

#841 in Graphics APIs

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

~6–15MB
~194K SLoC