Initial wgpu abstraction

This commit is contained in:
Werner
2021-11-09 21:07:16 -03:00
parent 15e8989bef
commit b23bc27f55
25 changed files with 775 additions and 209 deletions

View File

@ -0,0 +1,11 @@
use super::{StepMode, VertexAttribute};
use serde::{Deserialize, Serialize};
use std::borrow::Cow;
#[derive(Clone, Debug, Eq, PartialEq, Default, Serialize, Deserialize)]
pub struct VertexBufferLayout {
pub label: Cow<'static, str>,
pub stride: usize,
pub step_mode: StepMode,
pub attributes: Vec<VertexAttribute>,
}