Switched vertex type to be chosen at the shader load
This commit is contained in:
@@ -40,6 +40,14 @@ pub struct TextVertex3D {
|
||||
|
||||
vulkano::impl_vertex!(TextVertex3D, position);
|
||||
|
||||
#[derive(Default, Debug, Clone, Copy)]
|
||||
pub struct GlyphInstance {
|
||||
pub screen_position: (f32, f32),
|
||||
pub atlas_position: (f32, f32),
|
||||
pub atlas_size: (f32, f32),
|
||||
pub scale: f32,
|
||||
}
|
||||
vulkano::impl_vertex!(GlyphInstance, screen_position, atlas_position, atlas_size, scale);
|
||||
// ==============================================================================
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
|
||||
Reference in New Issue
Block a user