Added template dynamic vertex.
This commit is contained in:
@@ -31,6 +31,7 @@ use crate::canvas::shader::text_shader::GlyphInstance;
|
||||
use std::fs::File;
|
||||
use std::io::Read;
|
||||
use rusttype::{Font, PositionedGlyph, Scale, Rect, point, GlyphId};
|
||||
use vulkano::pipeline::vertex::VertexDefinition;
|
||||
|
||||
|
||||
// I don't think this is going to work without getting into Box'ing
|
||||
@@ -322,7 +323,7 @@ impl CanvasState {
|
||||
filename: String,
|
||||
physical: PhysicalDevice,
|
||||
capabilities: Capabilities) -> Option<Arc<CompiledGraphicsPipelineHandle>>
|
||||
where T: CompiledGraphicsPipeline {
|
||||
where T: CompiledGraphicsPipeline, V: VertexDefinition {
|
||||
|
||||
let handle = Arc::new(CompiledGraphicsPipelineHandle {
|
||||
handle: self.shader_buffers.len() as u32
|
||||
|
||||
Reference in New Issue
Block a user