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

pub trait CompiledGraphicsPipeline {
    fn new(
        filename: String,
        device: Arc<Device>,
        handle: Arc<CompiledShaderHandle>,
        render_pass: Arc<dyn RenderPassAbstract + Send + Sync>
    ) -> Self
    where
        Self: Sized
;
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(
        self,
        render_pass: Arc<dyn RenderPassAbstract + Send + Sync>
    ) -> Self
    where
        Self: Sized
; }

Required methods

fn new(
    filename: String,
    device: Arc<Device>,
    handle: Arc<CompiledShaderHandle>,
    render_pass: Arc<dyn RenderPassAbstract + Send + Sync>
) -> Self where
    Self: Sized

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(
    self,
    render_pass: Arc<dyn RenderPassAbstract + Send + Sync>
) -> Self where
    Self: Sized

Loading content...

Implementors

impl CompiledGraphicsPipeline for GenericShader[src]

Convenience interface so we don't have to juggle shader types

fn new(
    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 CompiledGraphicsPipeline for TextShader[src]

Convenience interface so we don't have to juggle shader types

fn new(
    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...