[][src]Struct glium::framebuffer::EmptyFrameBuffer

pub struct EmptyFrameBuffer { /* fields omitted */ }

A framebuffer with no attachment at all.

Note that this is only supported on recent hardware.

Implementations

impl<'a> EmptyFrameBuffer[src]

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

Returns true if empty framebuffers are supported by the backend.

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

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

pub fn get_max_supported_width<C: ?Sized>(context: &C) -> Option<u32> where
    C: CapabilitiesSource
[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: ?Sized>(context: &C) -> Option<u32> where
    C: CapabilitiesSource
[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: ?Sized>(context: &C) -> Option<u32> where
    C: CapabilitiesSource
[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: ?Sized>(context: &C) -> Option<u32> where
    C: CapabilitiesSource
[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: ?Sized>(
    facade: &F,
    width: u32,
    height: u32,
    layers: Option<u32>,
    samples: Option<u32>,
    fixed_samples: bool
) -> Result<EmptyFrameBuffer, ValidationError> where
    F: Facade
[src]

Creates a EmptyFrameBuffer.

Panic

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

Trait Implementations

impl Surface for EmptyFrameBuffer[src]

Auto Trait Implementations

impl !RefUnwindSafe for EmptyFrameBuffer

impl !Send for EmptyFrameBuffer

impl !Sync for EmptyFrameBuffer

impl Unpin for EmptyFrameBuffer

impl !UnwindSafe for EmptyFrameBuffer

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.