4 releases

0.1.3 Mar 6, 2024
0.1.2 Mar 4, 2024
0.1.1 Mar 4, 2024
0.1.0 Feb 24, 2024

#610 in Graphics APIs

Download history

153 downloads per month

Apache-2.0

9.5MB
403 lines

Finneon 🐠

Finneon is a simple rust image post processing library.

#[derive(Debug, Clone)]
struct Block {
    texture: Sampler,
}

fn fragment(
    FragColor(color): FragColor,
    Uv(uv): Uv,
    Uniforms(block): Uniforms<Block>
) -> Vec4 {
    let sample = block.texture.sample_u8(uv);
    sample.lerp(color, uv.y)
}

The api is a modern take on shader apis, using the extractor pattern. It allows for quick prototying and easy to read code.

The api is simpler than any graphics api but offers worse performance as all the work is done in parallel on the cpu.

Examples

Head over to the examples folder for a showcase of what you can do with finneon.

Dependencies

~10MB
~196K SLoC