compiles and renders textures again
This commit is contained in:
@@ -14,11 +14,11 @@ use vulkano::pipeline::vertex::{SingleBufferDefinition, VertexDefinition, Vertex
|
||||
use shade_runner as sr;
|
||||
use vulkano::memory::pool::PotentialDedicatedAllocation::Generic;
|
||||
use vulkano::SafeDeref;
|
||||
use crate::canvas::managed::shader::shader_common::{ShaderType, CompiledGraphicsPipelineResources, CompiledGraphicsPipeline};
|
||||
use crate::canvas::managed::shader::shader_common::{ShaderType, CompiledShaderResources, CompiledShader};
|
||||
use crate::canvas::managed::handles::CompiledShaderHandle;
|
||||
use crate::canvas::managed::shader::dynamic_vertex::RuntimeVertexDef;
|
||||
use crate::canvas::managed::ShaderSpecializationConstants;
|
||||
use crate::util::vertex::{VertexTypes, ColorVertex2D};
|
||||
use crate::util::vertex::{VertexTypes, ColorVertex3D};
|
||||
|
||||
/// CanvasShader holds the pipeline and render pass for the input shader source
|
||||
#[derive(Clone)]
|
||||
@@ -37,10 +37,10 @@ impl GenericShader {
|
||||
}
|
||||
|
||||
/// Gives CanvasShader the resource functions
|
||||
impl CompiledGraphicsPipelineResources for GenericShader {}
|
||||
impl CompiledShaderResources for GenericShader {}
|
||||
|
||||
/// Convenience interface so we don't have to juggle shader types
|
||||
impl CompiledGraphicsPipeline for GenericShader {
|
||||
impl CompiledShader for GenericShader {
|
||||
|
||||
/// This will explode when the shader does not want to compile
|
||||
fn new<V: Vertex>(filename: String,
|
||||
|
||||
Reference in New Issue
Block a user