bevy/crates/bevy_render/src/vertex.rs
2020-05-24 12:39:23 -07:00

15 lines
329 B
Rust

use zerocopy::{AsBytes, FromBytes};
use bevy_derive::Uniforms;
#[repr(C)]
#[derive(Clone, Copy, AsBytes, FromBytes, Uniforms)]
#[module(bevy_render = "crate")]
pub struct Vertex {
#[uniform(vertex)]
pub position: [f32; 3],
#[uniform(vertex)]
pub normal: [f32; 3],
#[uniform(vertex)]
pub uv: [f32; 2],
}