[−][src]Trait sfml_rust::canvas::managed::shader::shader_common::CompiledShader
Required methods
fn new<V>(
filename: String,
device: Arc<Device>,
handle: Arc<CompiledShaderHandle>,
render_pass: Arc<dyn RenderPassAbstract + Send + Sync>
) -> Self where
Self: Sized,
V: Vertex,
filename: String,
device: Arc<Device>,
handle: Arc<CompiledShaderHandle>,
render_pass: Arc<dyn RenderPassAbstract + Send + Sync>
) -> Self where
Self: Sized,
V: Vertex,
fn get_name(&self) -> String
fn get_handle(&self) -> Arc<CompiledShaderHandle>
fn get_pipeline(&self) -> Arc<dyn GraphicsPipelineAbstract + Sync + Send>
fn get_renderpass(&self) -> Arc<dyn RenderPassAbstract + Send + Sync>
fn recompile<V: Vertex>(
self,
render_pass: Arc<dyn RenderPassAbstract + Send + Sync>
) -> Self where
Self: Sized,
self,
render_pass: Arc<dyn RenderPassAbstract + Send + Sync>
) -> Self where
Self: Sized,
Implementors
impl CompiledShader for GenericShader
[src]
Convenience interface so we don't have to juggle shader types
fn new<V: Vertex>(
filename: String,
device: Arc<Device>,
handle: Arc<CompiledShaderHandle>,
render_pass: Arc<dyn RenderPassAbstract + Send + Sync>
) -> GenericShader
[src]
filename: String,
device: Arc<Device>,
handle: Arc<CompiledShaderHandle>,
render_pass: Arc<dyn RenderPassAbstract + Send + Sync>
) -> GenericShader
This will explode when the shader does not want to compile
fn get_name(&self) -> String
[src]
fn get_handle(&self) -> Arc<CompiledShaderHandle>
[src]
fn get_pipeline(&self) -> Arc<dyn GraphicsPipelineAbstract + Sync + Send>
[src]
fn get_renderpass(&self) -> Arc<dyn RenderPassAbstract + Send + Sync>
[src]
fn recompile<V: Vertex>(
self,
render_pass: Arc<dyn RenderPassAbstract + Send + Sync>
) -> GenericShader
[src]
self,
render_pass: Arc<dyn RenderPassAbstract + Send + Sync>
) -> GenericShader
impl CompiledShader for TextShader
[src]
Convenience interface so we don't have to juggle shader types
fn new<V: Vertex>(
filename: String,
device: Arc<Device>,
handle: Arc<CompiledShaderHandle>,
render_pass: Arc<dyn RenderPassAbstract + Send + Sync>
) -> TextShader
[src]
filename: String,
device: Arc<Device>,
handle: Arc<CompiledShaderHandle>,
render_pass: Arc<dyn RenderPassAbstract + Send + Sync>
) -> TextShader
This will explode when the shader does not want to compile
fn get_name(&self) -> String
[src]
fn get_handle(&self) -> Arc<CompiledShaderHandle>
[src]
fn get_pipeline(&self) -> Arc<dyn GraphicsPipelineAbstract + Sync + Send>
[src]
fn get_renderpass(&self) -> Arc<dyn RenderPassAbstract + Send + Sync>
[src]
fn recompile<V: Vertex>(
self,
render_pass: Arc<dyn RenderPassAbstract + Send + Sync>
) -> TextShader
[src]
self,
render_pass: Arc<dyn RenderPassAbstract + Send + Sync>
) -> TextShader