rpuc

Crates.iorpuc
lib.rsrpuc
version0.3.0
sourcesrc
created_at2024-05-05 09:09:25.118318
updated_at2024-05-13 10:57:54.709793
descriptionThis is the standalone compiler for RPU, a GLSL-compatible language for rendering procedural graphics on the CPU.
homepage
repositoryhttps://github.com/markusmoenig/RPU.git
max_upload_size
id1230109
size81,964
Markus Moenig (markusmoenig)

documentation

README

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).

Commit count: 86

cargo fmt