[][src]Trait sfml_rust::canvas::managed::shader::shader_common::CompiledShader

pub trait CompiledShader {
    fn new<V>(
        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
; }

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, 

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

Loading content...

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]

This will explode when the shader does not want to compile

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]

This will explode when the shader does not want to compile

Loading content...