Enum gfx::render::target::Plane [] [src]

pub enum Plane<R: Resources> {
    Surface(Surface<R>),
    Texture(Texture<R>, LevelOption<Layer>),
}

A single buffer that can be bound to a render target.

Variants

Surface(Surface<R>)

Render to a Surface (corresponds to a renderbuffer in GL).

Texture(Texture<R>, LevelOption<Layer>)

Render to a texture at a specific mipmap level If Layer is set, it is selecting a single 2D slice of a given 3D texture

Methods

impl<R: Resources> Plane<R>
[src]

fn get_surface_info(&self) -> SurfaceInfo

Get the surface info.

fn get_format(&self) -> Format

Get surface/texture format.

Trait Implementations

impl<R: Debug + Resources> Debug for Plane<R>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<R: PartialEq + Resources> PartialEq for Plane<R>
[src]

fn eq(&self, __arg_0: &Plane<R>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Plane<R>) -> bool

This method tests for !=.

impl<R: Clone + Resources> Clone for Plane<R>
[src]

fn clone(&self) -> Plane<R>

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

impl<R: Resources> Output<R> for Plane<R>
[src]

fn get_size(&self) -> (Size, Size)

Get canvas dimensions.

fn get_colors(&self) -> &[Plane<R>]

Get array of color planes.

fn get_depth(&self) -> Option<&Plane<R>>

Get depth plane, if any.

fn get_stencil(&self) -> Option<&Plane<R>>

Get stencil plane, if any.

fn get_handle(&self) -> Option<&FrameBuffer<R>>

Get an associated device handle, if any.

fn get_gamma(&self) -> Gamma

Check if it converts gamma of the output colors.

fn get_mask(&self) -> Mask

Get the output surface mask.