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§

Deletes the WebGLRSTexture object.

Binds the WebGLRSTexture to a target

Arguments
  • target - specifying the binding point.

Returns true if the WebGLRSTexture is valid and false otherwise.

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.

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.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.