pub struct WebGLRSBuffer<'ctx> { /* private fields */ }
Expand description

Buffer which is used for storing data

The WebGLBuffer interface is part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors.

Implementations§

Deletes this WebGLRSBuffer

Returns true is the WebGLRSBuffer object is valid.

Binds the buffer to a given target

Arguments
  • target - an enum specifying the binding point.

Binds the WebGLRSBuffer to a given binding point (target) at a given index.

Arguments
  • target - an enum specifying the target for the bind operation.
  • index - the index of the target.

Binds a range of the WebGLRSBuffer to a given binding point (target) at a given index.

Arguments
  • target - an enum specifying the target for the bind operation.
  • index - the index of the target.
  • offset - the starting offset.
  • size - the amount of data that can be read from the buffer.

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.