This is a simple abstract model of wgpu drawing.
Chinese: 这个库的代码和设计并非是最优的,只是一个简单的抽象模型,便于理解和书写从第一元素到实现的编码习惯模式。
English: The code and design of this library is not the best, it is just a simple abstract model, which is convenient for understanding and writing coding habits from the first element to the implementation.
- [example] : Base
cargo run --example base
- [example] : Queue Ready Paint Pass
cargo run --example queue_ready_paint_pass
- [example] : Nice View
cargo run --example nice_view
pub struct NiceViewScene;
impl Queue for NiceViewScene {
fn introduce(scene: &mut ready_paint::scene::Scene) {
scene
.add_ready(world::World::default())
.add_ready(object::Tetrahedron::default());
scene.add_paint::<PaintScene>();
}
}