mirror of
https://github.com/guilhermewerner/wgpu-renderer
synced 2025-06-16 13:54:21 +00:00
Initial wgpu abstraction
This commit is contained in:
11
Source/Render/VertexBufferLayout.rs
Normal file
11
Source/Render/VertexBufferLayout.rs
Normal 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>,
|
||||
}
|
Reference in New Issue
Block a user