Struct gfx_device_gl::Device

source ·
pub struct Device { /* private fields */ }
Expand description

An OpenGL device with GLSL shaders.

Implementations

Access the OpenGL directly via a closure. OpenGL types and enumerations can be found in the gl crate.

Get the OpenGL-specific driver information

Trait Implementations

Associated Resources type.
Associated CommandBuffer type. Every Device type can only work with one CommandBuffer type. Read more
Returns the capabilities of this Device.
Pin everything from this handle manager to live for a frame.
Submits a CommandBuffer to the GPU for execution.
Submits a CommandBuffer to the GPU for execution. returns a fence that is signaled after the GPU has executed all commands Read more
Stalls the current thread until the fence is satisfied
Cleanup unused resources. This should be called between frames.

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.