Struct gfx_hal::Gpu

source ·
pub struct Gpu<B: Backend> {
    pub device: B::Device,
    pub queues: Queues<B>,
}
Expand description

Represents a combination of a logical device and the hardware queues it provides.

This structure is typically created using an Adapter.

Fields

device: B::Device

Logical device for a given backend.

queues: Queues<B>

The command queues that the device provides.

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.