pub struct WebGLRSRenderbuffer<'ctx> { /* private fields */ }Expand description
The WebGLRenderbuffer interface is represents a buffer that can contain an image, or can be source
or target of an rendering operation.
Implementations§
Source§impl<'ctx> WebGLRSRenderbuffer<'ctx>
impl<'ctx> WebGLRSRenderbuffer<'ctx>
Sourcepub fn is_valid(&self) -> bool
pub fn is_valid(&self) -> bool
Returns true if the WebGLRSRenderbuffer object is valid and false otherwise.
Sourcepub fn bind(&self, target: RenderbufferKind)
pub fn bind(&self, target: RenderbufferKind)
Binds the WebGLRSRenderbuffer object to the given target.
§Arguments
target- specifying the binding point.
Sourcepub fn attach_framebuffer(
&self,
fb_target: FramebufferKind,
attachment: Attachment,
rb_target: RenderbufferKind,
)
pub fn attach_framebuffer( &self, fb_target: FramebufferKind, attachment: Attachment, rb_target: RenderbufferKind, )
Attaches this WebGLRSRenderbuffer object to a framebuffer.
§Arguments
fb_target- specifying the binding point (target) for the framebuffer.attachment- specifying the attachment point for the render buffer.rb_target- specifying the binding point (target) for the render buffer.
Trait Implementations§
Source§impl<'ctx> Clone for WebGLRSRenderbuffer<'ctx>
impl<'ctx> Clone for WebGLRSRenderbuffer<'ctx>
Source§fn clone(&self) -> WebGLRSRenderbuffer<'ctx>
fn clone(&self) -> WebGLRSRenderbuffer<'ctx>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'ctx> Freeze for WebGLRSRenderbuffer<'ctx>
impl<'ctx> RefUnwindSafe for WebGLRSRenderbuffer<'ctx>
impl<'ctx> !Send for WebGLRSRenderbuffer<'ctx>
impl<'ctx> !Sync for WebGLRSRenderbuffer<'ctx>
impl<'ctx> Unpin for WebGLRSRenderbuffer<'ctx>
impl<'ctx> UnwindSafe for WebGLRSRenderbuffer<'ctx>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more