mirror of
https://github.com/guilhermewerner/wgpu-renderer
synced 2025-06-15 13:24:20 +00:00
12 lines
334 B
Rust
12 lines
334 B
Rust
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>,
|
|
}
|