Added template dynamic vertex.

This commit is contained in:
2019-10-15 16:08:17 -07:00
parent 554e8d551e
commit c4b20bcd79
5 changed files with 134 additions and 22 deletions

View File

@@ -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