bevy/crates/bevy_render/src/vertex.rs

16 lines
329 B
Rust
Raw Normal View History

2020-01-11 10:11:27 +00:00
use zerocopy::{AsBytes, FromBytes};
2019-12-01 01:42:27 +00:00
2020-04-06 23:15:59 +00:00
use bevy_derive::Uniforms;
2019-12-01 01:42:27 +00:00
#[repr(C)]
#[derive(Clone, Copy, AsBytes, FromBytes, Uniforms)]
#[module(bevy_render = "crate")]
2019-12-01 01:42:27 +00:00
pub struct Vertex {
#[uniform(vertex)]
pub position: [f32; 3],
#[uniform(vertex)]
pub normal: [f32; 3],
#[uniform(vertex)]
2020-01-14 01:35:30 +00:00
pub uv: [f32; 2],
2020-04-25 01:55:15 +00:00
}