Struct sierra::PhysicalDevice[][src]

pub struct PhysicalDevice { /* fields omitted */ }

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

impl PhysicalDevice[src]

pub fn info(&self) -> DeviceInfo[src]

Returns information about this device.

pub fn surface_capabilities(
    &self,
    surface: &Surface
) -> Result<Option<SurfaceCapabilities>, SurfaceError>
[src]

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

pub fn create_device<Q>(
    self,
    features: &[Feature],
    queues: Q
) -> Result<(Device, Q::Queues), CreateDeviceError<Q::Error>> where
    Q: QueuesQuery
[src]

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

impl Debug for PhysicalDevice[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.