mirror of
https://github.com/bevyengine/bevy
synced 2024-12-19 17:43:07 +00:00
15 lines
329 B
Rust
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],
|
|
}
|