#[derive(Clone, Debug)]
pub struct VertexBufferLayout {
pub array_stride: wgpu::BufferAddress,
pub step_mode: wgpu::VertexStepMode,
pub attributes: Vec<wgpu::VertexAttribute>,
}
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct FragmentState {
pub source: &'static str,
pub entry_point: &'static str,
pub targets: Vec<Option<wgpu::ColorTargetState>>,
}
#[derive(Clone, Debug)]
pub struct VertexState {
pub source: &'static str,
pub entry_point: &'static str,
pub buffers: Vec<VertexBufferLayout>,
}