pittore 0.2.4

Simple toolkit for 2D visualization based on wgpu.
Documentation
1
2
3
4
5
6
7
8
9
use crate::RenderState;

pub trait AsBindGroup {
    fn bind_group_layout(device: &wgpu::Device) -> wgpu::BindGroupLayout
    where
        Self: Sized;

    fn as_bind_group(&self, render_state: &RenderState) -> wgpu::BindGroup;
}