pub struct RenderBuffer { /* private fields */ }
Expand description

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.

Implementations§

Builds a new render buffer.

Methods from Deref<Target = RenderBufferAny>§

Returns the dimensions of the render buffer.

Returns the number of samples of the render buffer, or None if multisampling isn’t enabled.

Returns the context used to create this renderbuffer.

Returns the kind of renderbuffer.

Determines the number of depth and stencil bits in the format of this render buffer.

Trait Implementations§

The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
The type of identifier for this object.
Returns the id of the object.
Builds the ColorAttachment.

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.