[][src]Trait rendy_graph::render::SimpleGraphicsPipelineDesc

pub trait SimpleGraphicsPipelineDesc<B: Backend, T: ?Sized>: Debug {
    type Pipeline: SimpleGraphicsPipeline<B, T>;
    fn load_shader_set(&self, factory: &mut Factory<B>, aux: &T) -> ShaderSet<B>;
fn build<'a>(
        self,
        ctx: &GraphContext<B>,
        factory: &mut Factory<B>,
        queue: QueueId,
        aux: &T,
        buffers: Vec<NodeBuffer>,
        images: Vec<NodeImage>,
        set_layouts: &[Handle<DescriptorSetLayout<B>>]
    ) -> Result<Self::Pipeline, CreationError>; fn builder(self) -> DescBuilder<B, T, SimpleRenderGroupDesc<Self>>
    where
        Self: Sized
, { ... }
fn buffers(&self) -> Vec<BufferAccess> { ... }
fn images(&self) -> Vec<ImageAccess> { ... }
fn colors(&self) -> Vec<ColorBlendDesc> { ... }
fn depth_stencil(&self) -> Option<DepthStencilDesc> { ... }
fn rasterizer(&self) -> Rasterizer { ... }
fn vertices(
        &self
    ) -> Vec<(Vec<Element<Format>>, ElemStride, VertexInputRate)> { ... }
fn layout(&self) -> Layout { ... }
fn input_assembler(&self) -> InputAssemblerDesc { ... }
fn pipeline(&self) -> Pipeline { ... } }

Descriptor for simple graphics pipeline implementation.

Associated Types

type Pipeline: SimpleGraphicsPipeline<B, T>

Simple graphics pipeline implementation

Loading content...

Required methods

fn load_shader_set(&self, factory: &mut Factory<B>, aux: &T) -> ShaderSet<B>

Load shader set. This function should utilize the provided ShaderSetBuilder reflection class and return the compiled ShaderSet.

Parameters

factory - factory to create shader modules.

aux - auxiliary data container. May be anything the implementation desires.

fn build<'a>(
    self,
    ctx: &GraphContext<B>,
    factory: &mut Factory<B>,
    queue: QueueId,
    aux: &T,
    buffers: Vec<NodeBuffer>,
    images: Vec<NodeImage>,
    set_layouts: &[Handle<DescriptorSetLayout<B>>]
) -> Result<Self::Pipeline, CreationError>

Build pass instance.

Loading content...

Provided methods

fn builder(self) -> DescBuilder<B, T, SimpleRenderGroupDesc<Self>> where
    Self: Sized

Make simple render group builder.

fn buffers(&self) -> Vec<BufferAccess>

Get set or buffer resources the node uses.

fn images(&self) -> Vec<ImageAccess>

Get set or image resources the node uses.

fn colors(&self) -> Vec<ColorBlendDesc>

Color blend descs.

fn depth_stencil(&self) -> Option<DepthStencilDesc>

Depth stencil desc.

fn rasterizer(&self) -> Rasterizer

Rasterizer desc.

fn vertices(&self) -> Vec<(Vec<Element<Format>>, ElemStride, VertexInputRate)>

Get vertex input.

fn layout(&self) -> Layout

Layout for graphics pipeline Default implementation for pipeline will use this.

fn input_assembler(&self) -> InputAssemblerDesc

Returns the InputAssemblerDesc. Defaults to a TriangleList with Restart disabled, can be overriden.

fn pipeline(&self) -> Pipeline

Graphics pipelines

Loading content...

Implementors

Loading content...