[][src]Trait amethyst_rendy::rendy::graph::render::SimpleGraphicsPipelineDesc

pub trait SimpleGraphicsPipelineDesc<B, T>: Debug where
    B: Backend,
    T: ?Sized
{ type Pipeline: SimpleGraphicsPipeline<B, T>; fn load_shader_set(&self, factory: &mut Factory<B>, aux: &T) -> ShaderSet<B>;
fn build(
        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, Error>; fn builder(self) -> DescBuilder<B, T, SimpleRenderGroupDesc<Self>> { ... }
fn buffers(&self) -> Vec<BufferAccess> { ... }
fn images(&self) -> Vec<ImageAccess> { ... }
fn colors(&self) -> Vec<ColorBlendDesc> { ... }
fn depth_stencil(&self) -> Option<DepthStencilDesc> { ... }
fn vertices(&self) -> Vec<(Vec<Element<Format>>, u32, 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(
    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, Error>

Build pass instance.

Loading content...

Provided methods

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

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 vertices(&self) -> Vec<(Vec<Element<Format>>, u32, 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...