agpu 0.1.2

Abstract GPU Project
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
fn main() -> Result<(), agpu::BoxError> {
    let program = agpu::GpuProgram::builder("henlo").build()?;

    let example_pipeline = program.gpu.new_pipeline("").create();

    program.run_draw(move |mut frame| {
        frame
            .render_pass("Example render pass")
            .with_pipeline(&example_pipeline)
            .begin()
            .draw_triangle();
    })
}