5 releases
0.1.4 | Feb 5, 2025 |
---|---|
0.1.3 | Mar 6, 2024 |
0.1.2 | Mar 4, 2024 |
0.1.1 | Mar 4, 2024 |
0.1.0 | Feb 24, 2024 |
#207 in Graphics APIs
153 downloads per month
9.5MB
401 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 prototyping 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
~7MB
~180K SLoC