Struct amethyst_renderer::Target
[−]
pub struct Target { /* fields omitted */ }
A render target.
Each render target contains a certain number of color buffers and an optional depth buffer.
Methods
impl Target
[src]
fn named<N: Into<String>>(name: N) -> TargetBuilder
Creates a new TargetBuilder with the given name.
fn clear_color<V: Into<[f32; 4]>>(&self, enc: &mut Encoder, value: V)
Clears all color buffers to the given value.
fn clear_depth_stencil<V: Into<f32>>(&self, enc: &mut Encoder, value: V)
Clears the depth stencil buffer to the given value.
fn size(&self) -> (u32, u32)
Returns the width and height of the render target, measured in pixels.
fn color_buf(&self, i: usize) -> Option<&ColorBuffer>
Returns the color buffer with index i
.
fn color_bufs(&self) -> &[ColorBuffer]
Returns an array slice of the render target's color buffers.
fn depth_buf(&self) -> Option<&DepthBuffer>
Returns the render target's depth-stencil buffer, if it has one.
Trait Implementations
impl Clone for Target
[src]
fn clone(&self) -> Target
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more