[−][src]Struct processing::framebuffer::RenderBuffer
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 RenderBuffer
.
Methods
impl RenderBuffer
[src]
pub fn new<F>(
facade: &F,
format: UncompressedFloatFormat,
width: u32,
height: u32
) -> Result<RenderBuffer, CreationError> where
F: Facade + ?Sized,
[src]
facade: &F,
format: UncompressedFloatFormat,
width: u32,
height: u32
) -> Result<RenderBuffer, CreationError> where
F: Facade + ?Sized,
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 DerefMut for RenderBuffer
[src]
fn deref_mut(&mut self) -> &mut RenderBufferAny
[src]
impl<'a> ToColorAttachment<'a> for &'a RenderBuffer
[src]
fn to_color_attachment(self) -> ColorAttachment<'a>
[src]
impl GlObject for RenderBuffer
[src]
impl Deref for RenderBuffer
[src]
type Target = RenderBufferAny
The resulting type after dereferencing.
fn deref(&self) -> &RenderBufferAny
[src]
Auto Trait Implementations
impl !Send for RenderBuffer
impl !Sync for RenderBuffer
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Same for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.