[][src]Struct glium::framebuffer::DepthStencilRenderBuffer

pub struct DepthStencilRenderBuffer { /* fields omitted */ }

A render buffer is similar to a texture, but is optimized for usage as a draw target.

Contrary to a texture, you can't sample or modify the content of the DepthStencilRenderBuffer directly.

Implementations

impl DepthStencilRenderBuffer[src]

pub fn new<F: ?Sized>(
    facade: &F,
    format: DepthStencilFormat,
    width: u32,
    height: u32
) -> Result<DepthStencilRenderBuffer, CreationError> where
    F: Facade
[src]

Builds a new render buffer.

Methods from Deref<Target = RenderBufferAny>

pub fn get_dimensions(&self) -> (u32, u32)[src]

Returns the dimensions of the render buffer.

pub fn get_samples(&self) -> Option<u32>[src]

Returns the number of samples of the render buffer, or None if multisampling isn't enabled.

pub fn get_context(&self) -> &Rc<Context>[src]

Returns the context used to create this renderbuffer.

pub fn kind(&self) -> TextureKind[src]

Returns the kind of renderbuffer.

pub fn get_depth_stencil_bits(&self) -> (u16, u16)[src]

Determines the number of depth and stencil bits in the format of this render buffer.

Trait Implementations

impl Deref for DepthStencilRenderBuffer[src]

type Target = RenderBufferAny

The resulting type after dereferencing.

impl DerefMut for DepthStencilRenderBuffer[src]

impl GlObject for DepthStencilRenderBuffer[src]

type Id = c_uint

The type of identifier for this object.

impl<'a> ToDepthStencilAttachment<'a> for &'a DepthStencilRenderBuffer[src]

Auto Trait Implementations

impl !RefUnwindSafe for DepthStencilRenderBuffer

impl !Send for DepthStencilRenderBuffer

impl !Sync for DepthStencilRenderBuffer

impl Unpin for DepthStencilRenderBuffer

impl !UnwindSafe for DepthStencilRenderBuffer

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.