bevy/crates/bevy_render/src/vertex.rs
Carter Anderson e855995145 cargo fmt
2020-06-15 12:47:35 -07:00

15 lines
356 B
Rust

use crate::pipeline::AsVertexBufferDescriptor;
use bevy_core::bytes::Byteable;
#[repr(C)]
#[derive(Clone, Copy, AsVertexBufferDescriptor)]
#[module(bevy_render = "crate")]
pub struct Vertex {
pub position: [f32; 3],
pub normal: [f32; 3],
pub uv: [f32; 2],
}
// SAFE: Vertex is repr(C) containing primitives
unsafe impl Byteable for Vertex {}