Module amethyst_renderer::pipe []

Renderer pipeline configuration.

Example

let pipe = renderer.create_pipe(Pipeline::build()
    .with_target(Target::new("gbuffer")
        .with_num_color_bufs(4)
        .with_depth_buf(true))
    .with_stage(Stage::with_target("gbuffer")
        .clear_target([0.0; 1], 0.0)
        .draw_pass(DrawFlat::new()))
    .with_stage(Stage::with_backbuffer()
        .with_pass(BlitBuffer::color_buf("gbuffer", 2))
        .with_pass(DeferredLighting::compute_from("gbuffer"))))
    .expect("Could not build pipeline");

Modules

pass

Types for constructing render passes.

Structs

ColorBuffer

Target color buffer.

DepthBuffer

Target depth-stencil buffer.

Effect
EffectBuilder
NewEffect
Pipeline

Defines how the rendering pipeline should be configured.

PipelineBuilder

Constructs a new pipeline with the given render targets and layers.

Stage

A stage in the rendering pipeline.

StageBuilder

Constructs a new rendering stage.

Stages

Immutable iterator of pipeline stages.

Target

A render target.

TargetBuilder

Builds new render targets.

Enums

DepthMode

Type Definitions

Targets

A hash map containing named render targets.