diff options
Diffstat (limited to 'src/shader_data.rs')
| -rw-r--r-- | src/shader_data.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/shader_data.rs b/src/shader_data.rs index 8197bfc..892260d 100644 --- a/src/shader_data.rs +++ b/src/shader_data.rs @@ -16,12 +16,17 @@ pub struct Vertex<T: Copy> { #[repr(C)] #[derive(Clone, Debug)] pub struct UniformBlock<T: Copy> { - pub scale: Vec3<T>, - pub model: Transformation<T>, pub view: Transformation<T>, pub projection: Mat4<T>, } +#[repr(C)] +#[derive(Clone, Debug)] +pub struct VertexPushBlock<T: Copy> { + pub scale: Vec3<T>, + pub model: Transformation<T>, +} + impl<T: Copy> Vertex<T> { pub const fn new(position: Vec3<T>, color: Vec3<T>, texture_coordinates: Vec2<T>) |