Module amethyst_renderer::pipe [−][src]
Renderer pipeline configuration.
Example
ⓘThis example is not tested
let pipe = renderer.create_pipe(PolyPipeline::build() .with_target(Target::new("gbuffer") .with_num_color_bufs(4) .with_depth_buf(true)) .with_stage(PolyStage::with_target("gbuffer") .clear_target([0.0; 1], 0.0) .draw_pass(DrawFlat::new())) .with_stage(PolyStage::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. |
| Data | |
| DepthBuffer |
Target depth-stencil buffer. |
| Effect | |
| EffectBuilder | |
| Init |
FIXME: Cannot |
| Meta | |
| 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. |
| Target |
A render target. |
| TargetBuilder |
Builds new render targets. |
Enums
| DepthMode |
Traits
| PipelineBuild | |
| PipelineData |
The data requested from the |
| PolyPipeline |
Trait used for the pipeline. |
| PolyStage |
A stage in the rendering. Contains multiple passes. |
| PolyStages |
Type Definitions
| Targets |
A hash map containing named render targets. |