Struct sierra::PhysicalDevice

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

Opaque value representing a device (software emulated of hardware). Can be used to fetch information about device, its support of the surface and create graphics device.

Implementations§

Returns information about this device.

Create graphics API device.

features - device will enable specifeid features. Only features listed in DeviceInfo returned from self.info() can be specified here. Otherwise device creation will fail.

queues - specifies QueuesQuery object which will query device and initialize command queues.
Returns initialized device and queues. Type in which queues are returned depends on type of queues query, it may be single queue, an array of queues, struct, anything.

Note. QueuesQuery may be implemented by user, this trait is not sealed.

Trait Implementations§

Formats the value using the given formatter. 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

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.