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

GpuBuilder for constructing a GPU

Implementations§

Create a new GpuBuilder to configure and build a GPU to use for rendering.

Set the type of queue to use for rendering. The GPU defaults to graphical.

If passing in a surface, the gpu will be built using the queue that best supports both the render queue & surface.

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.