pub struct WebGLRSTexture<'ctx> { /* private fields */ }
Expand description
The WebGLTexture interface is part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations.
Implementations§
Source§impl<'ctx> WebGLRSTexture<'ctx>
impl<'ctx> WebGLRSTexture<'ctx>
Sourcepub fn bind(&self, target: TextureKind)
pub fn bind(&self, target: TextureKind)
Sourcepub fn is_valid(&self) -> bool
pub fn is_valid(&self) -> bool
Returns true if the WebGLRSTexture
is valid and false otherwise.
Sourcepub fn attach_framebuffer(
&self,
target: FramebufferKind,
attachment: Attachment,
tex_target: TextureBindPoint,
level: i32,
)
pub fn attach_framebuffer( &self, target: FramebufferKind, attachment: Attachment, tex_target: TextureBindPoint, level: i32, )
Attaches this WebGLRSTexture
object to a framebuffer.
§Arguments
target
- specifying the binding point.attachment
- specifying the attachment point for the texture.tex_target
- specifying the texture target.level
- specifying the mipmap level of the texture image to attach.
Sourcepub fn attach_layer_framebuffer(
&self,
target: FramebufferKind,
attachment: Attachment,
level: i32,
layer: i32,
)
pub fn attach_layer_framebuffer( &self, target: FramebufferKind, attachment: Attachment, level: i32, layer: i32, )
Attaches a single layer of this WebGLRSTexture
object to a framebuffer.TextureBindPoint
§Arguments
target
- specifying the binding point.attachment
- specifying the attachment point for the texture.level
- specifying the mipmap level of the texture image to attach.layer
- specifying the layer of the texture image to attach.
Trait Implementations§
Source§impl<'ctx> Clone for WebGLRSTexture<'ctx>
impl<'ctx> Clone for WebGLRSTexture<'ctx>
Source§fn clone(&self) -> WebGLRSTexture<'ctx>
fn clone(&self) -> WebGLRSTexture<'ctx>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'ctx> Freeze for WebGLRSTexture<'ctx>
impl<'ctx> RefUnwindSafe for WebGLRSTexture<'ctx>
impl<'ctx> !Send for WebGLRSTexture<'ctx>
impl<'ctx> !Sync for WebGLRSTexture<'ctx>
impl<'ctx> Unpin for WebGLRSTexture<'ctx>
impl<'ctx> UnwindSafe for WebGLRSTexture<'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