[][src]Struct processing::framebuffer::EmptyFrameBuffer

pub struct EmptyFrameBuffer { /* fields omitted */ }

A framebuffer with no attachment at all.

Note that this is only supported on recent hardware.

Methods

impl<'a> EmptyFrameBuffer[src]

pub fn is_supported<C>(context: &C) -> bool where
    C: CapabilitiesSource + ?Sized
[src]

Returns true if empty framebuffers are supported by the backend.

pub fn is_layered_supported<C>(context: &C) -> bool where
    C: CapabilitiesSource + ?Sized
[src]

Returns true if layered empty framebuffers are supported by the backend.

pub fn get_max_supported_width<C>(context: &C) -> Option<u32> where
    C: CapabilitiesSource + ?Sized
[src]

Returns the maximum width of empty framebuffers that the backend supports, or None if empty framebuffers are not supported.

pub fn get_max_supported_height<C>(context: &C) -> Option<u32> where
    C: CapabilitiesSource + ?Sized
[src]

Returns the maximum height of empty framebuffers that the backend supports, or None if empty framebuffers are not supported.

pub fn get_max_supported_samples<C>(context: &C) -> Option<u32> where
    C: CapabilitiesSource + ?Sized
[src]

Returns the maximum number of samples of empty framebuffers that the backend supports, or None if empty framebuffers are not supported.

pub fn get_max_supported_layers<C>(context: &C) -> Option<u32> where
    C: CapabilitiesSource + ?Sized
[src]

Returns the maximum number of layers of empty framebuffers that the backend supports, or None if layered empty framebuffers are not supported.

pub fn new<F>(
    facade: &F,
    width: u32,
    height: u32,
    layers: Option<u32>,
    samples: Option<u32>,
    fixed_samples: bool
) -> Result<EmptyFrameBuffer, ValidationError> where
    F: Facade + ?Sized
[src]

Creates a EmptyFrameBuffer.

Panic

Panics if layers or samples is equal to Some(0).

Trait Implementations

impl Surface for EmptyFrameBuffer[src]

fn clear_color(&mut self, red: f32, green: f32, blue: f32, alpha: f32)[src]

Clears the color attachment of the target.

fn clear_color_srgb(&mut self, red: f32, green: f32, blue: f32, alpha: f32)[src]

Clears the color attachment of the target. The color is in sRGB format.

fn clear_depth(&mut self, value: f32)[src]

Clears the depth attachment of the target.

fn clear_stencil(&mut self, value: i32)[src]

Clears the stencil attachment of the target.

fn clear_color_and_depth(&mut self, color: (f32, f32, f32, f32), depth: f32)[src]

Clears the color and depth attachments of the target.

fn clear_color_srgb_and_depth(
    &mut self,
    color: (f32, f32, f32, f32),
    depth: f32
)
[src]

Clears the color and depth attachments of the target. The color is in sRGB format.

fn clear_color_and_stencil(&mut self, color: (f32, f32, f32, f32), stencil: i32)[src]

Clears the color and stencil attachments of the target.

fn clear_color_srgb_and_stencil(
    &mut self,
    color: (f32, f32, f32, f32),
    stencil: i32
)
[src]

Clears the color and stencil attachments of the target. The color is in sRGB format.

fn clear_depth_and_stencil(&mut self, depth: f32, stencil: i32)[src]

Clears the depth and stencil attachments of the target.

fn clear_all(&mut self, color: (f32, f32, f32, f32), depth: f32, stencil: i32)[src]

Clears the color, depth and stencil attachments of the target.

fn clear_all_srgb(
    &mut self,
    color: (f32, f32, f32, f32),
    depth: f32,
    stencil: i32
)
[src]

Clears the color, depth and stencil attachments of the target. The color is in sRGB format.

fn has_depth_buffer(&self) -> bool[src]

Returns true if the surface has a depth buffer available.

fn has_stencil_buffer(&self) -> bool[src]

Returns true if the surface has a stencil buffer available.

fn blit_whole_color_to<S>(
    &self,
    target: &S,
    target_rect: &BlitTarget,
    filter: MagnifySamplerFilter
) where
    S: Surface
[src]

Copies the entire surface to a target surface. See blit_color.

fn fill<S>(&self, target: &S, filter: MagnifySamplerFilter) where
    S: Surface
[src]

Copies the entire surface to the entire target. See blit_color.

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> Erased for T[src]