compiles and renders textures again
This commit is contained in:
@@ -4,25 +4,25 @@ use vulkano::buffer::BufferAccess;
|
||||
use std::collections::HashMap;
|
||||
|
||||
#[derive(Default, Debug, Clone, Copy)]
|
||||
pub struct TextureVertex2D {
|
||||
pub v_position: [f32; 2],
|
||||
pub struct TextureVertex3D {
|
||||
pub v_position: [f32; 3],
|
||||
pub ti_position: [f32; 2],
|
||||
}
|
||||
vulkano::impl_vertex!(TextureVertex2D, v_position, ti_position);
|
||||
vulkano::impl_vertex!(TextureVertex3D, v_position, ti_position);
|
||||
|
||||
#[derive(Default, Debug, Clone, Copy)]
|
||||
pub struct ColorVertex2D {
|
||||
pub v_position: [f32; 2],
|
||||
pub struct ColorVertex3D {
|
||||
pub v_position: [f32; 3],
|
||||
pub color: [f32; 4],
|
||||
}
|
||||
vulkano::impl_vertex!(ColorVertex2D, v_position, color);
|
||||
vulkano::impl_vertex!(ColorVertex3D, v_position, color);
|
||||
|
||||
#[derive(Default, Debug, Clone, Copy)]
|
||||
pub struct ImageVertex2D {
|
||||
pub v_position: [f32; 2],
|
||||
pub color: [f32; 4],
|
||||
pub struct ImageVertex3D {
|
||||
pub v_position: [f32; 3],
|
||||
pub ti_position: [f32; 2],
|
||||
}
|
||||
vulkano::impl_vertex!(ImageVertex2D, v_position, color);
|
||||
vulkano::impl_vertex!(ImageVertex3D, v_position, ti_position);
|
||||
|
||||
#[derive(Default, Debug, Clone, Copy)]
|
||||
pub struct Vertex3D {
|
||||
@@ -52,9 +52,9 @@ vulkano::impl_vertex!(GlyphInstance, screen_position, atlas_position, atlas_size
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum VertexTypes {
|
||||
TextureType(Vec<TextureVertex2D>, Arc<CanvasTextureHandle>),
|
||||
ImageType(Vec<ImageVertex2D>, Arc<CanvasImageHandle>),
|
||||
ColorType(Vec<ColorVertex2D>),
|
||||
TextureType(Vec<TextureVertex3D>, Arc<CanvasTextureHandle>),
|
||||
ImageType(Vec<ImageVertex3D>, Arc<CanvasImageHandle>),
|
||||
ColorType(Vec<ColorVertex3D>),
|
||||
ThreeDType(Vec<Vertex3D>),
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user