bevy/crates/bevy_render/src/vertex.rs

18 lines
374 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 03:19:02 +00:00
use bevy_asset;
2020-04-06 23:15:59 +00:00
use bevy_core;
use bevy_derive::Uniforms;
2019-12-01 01:42:27 +00:00
#[repr(C)]
#[derive(Clone, Copy, AsBytes, FromBytes, Uniforms)]
2020-04-06 21:20:53 +00:00
#[module(meta = false, 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
}