Struct sierra::PhysicalDevice[][src]

pub struct PhysicalDevice { /* fields omitted */ }
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.

Returns surface capabilities. Returns Ok(None) if this device does not support surface.

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

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.