Skip to main content

RenderPipeline

Trait RenderPipeline 

Source
pub trait RenderPipeline: Send + 'static {
    // Required method
    fn build(
        ctx: &VulkanContext,
        gpu_assets: &mut GpuAssetServer,
        graph: &mut RenderGraph,
    ) -> Result<PipelineHandles>
       where Self: Sized;

    // Provided methods
    fn on_resize(
        &mut self,
        _graph: &mut RenderGraph,
        _width: u32,
        _height: u32,
    ) -> Result<()> { ... }
    fn on_resize_internal(
        &mut self,
        _graph: &mut RenderGraph,
        _w: u32,
        _h: u32,
    ) -> Result<()> { ... }
}

Required Methods§

Source

fn build( ctx: &VulkanContext, gpu_assets: &mut GpuAssetServer, graph: &mut RenderGraph, ) -> Result<PipelineHandles>
where Self: Sized,

Provided Methods§

Source

fn on_resize( &mut self, _graph: &mut RenderGraph, _width: u32, _height: u32, ) -> Result<()>

Source

fn on_resize_internal( &mut self, _graph: &mut RenderGraph, _w: u32, _h: u32, ) -> Result<()>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§