Struct glium::framebuffer::DepthStencilRenderBuffer
[−]
[src]
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.
Methods
impl DepthStencilRenderBuffer
[src]
pub fn new<F: ?Sized>(
facade: &F,
format: DepthStencilFormat,
width: u32,
height: u32
) -> Result<DepthStencilRenderBuffer, CreationError> where
F: Facade,
[src]
facade: &F,
format: DepthStencilFormat,
width: u32,
height: u32
) -> Result<DepthStencilRenderBuffer, CreationError> where
F: Facade,
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.
Trait Implementations
impl<'a> ToDepthStencilAttachment<'a> for &'a DepthStencilRenderBuffer
[src]
fn to_depth_stencil_attachment(self) -> DepthStencilAttachment<'a>
[src]
Builds the DepthStencilAttachment
.
impl Deref for DepthStencilRenderBuffer
[src]
type Target = RenderBufferAny
The resulting type after dereferencing.
fn deref(&self) -> &RenderBufferAny
[src]
Dereferences the value.
impl DerefMut for DepthStencilRenderBuffer
[src]
fn deref_mut(&mut self) -> &mut RenderBufferAny
[src]
Mutably dereferences the value.