Struct three_d::renderer::ForwardPipeline [−][src]
pub struct ForwardPipeline { /* fields omitted */ }
Expand description
Forward render pipeline which can render objects (implementing the Object trait). Forward rendering directly draws to the given render target (for example the screen) and is therefore the same as calling Object::render directly.
Implementations
Constructor.
pub fn render_pass(
&self,
camera: &Camera,
objects: &[impl Object],
lights: &Lights
) -> ThreeDResult<()>
pub fn render_pass(
&self,
camera: &Camera,
objects: &[impl Object],
lights: &Lights
) -> ThreeDResult<()>
Render the objects. Also avoids rendering objects outside the camera frustum and render the objects in the order given by cmp_render_order. Must be called in a render target render function, for example in the callback function of Screen::write.
pub fn depth_pass_texture(
&self,
camera: &Camera,
objects: &[impl Object]
) -> ThreeDResult<DepthTargetTexture2D>
Auto Trait Implementations
impl !RefUnwindSafe for ForwardPipeline
impl !Send for ForwardPipeline
impl !Sync for ForwardPipeline
impl Unpin for ForwardPipeline
impl !UnwindSafe for ForwardPipeline
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more