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

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

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

Variants

Surface

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

Texture

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>

fn get_surface_info(&self) -> SurfaceInfo

Get the surface info.

fn get_format(&self) -> Format

Get surface/texture format.

Trait Implementations

impl<R: Resources> Output<R> for Plane<R>

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

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

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

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

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

fn get_gamma(&self) -> Gamma

fn get_mask(&self) -> Mask

Derived Implementations

impl<R: Debug + Resources> Debug for Plane<R> where R: Debug, R: Debug

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

impl<R: PartialEq + Resources> PartialEq for Plane<R> where R: PartialEq, R: PartialEq

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

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

impl<R: Clone + Resources> Clone for Plane<R> where R: Clone, R: Clone

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

fn clone_from(&mut self, source: &Self)