Struct luminance_webgl::webgl2::state::WebGL2State[][src]

pub struct WebGL2State { /* fields omitted */ }
Expand description

The graphics state.

This type represents the current state of a given graphics context. It acts as a forward-gate to all the exposed features from the low-level API but adds a small cache layer over it to prevent from issuing the same API call (with the same parameters).

Implementations

Get the number of maximum elements an array texture can hold.

Cache the number on the first call and then re-use it for later calls.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

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

Performs the conversion.

Performs the conversion.

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.