[][src]Struct gaclen::graphics::device::Device

pub struct Device { /* fields omitted */ }

A device responsible for hardware-accelerated computations.

It is responsible for recording, submitting and synchronizing commands and data to the GPU. The device structure contains some state information for synchronization purposes.

Methods

impl Device[src]

pub fn new(context: &Context) -> Result<Device, DeviceCreationError>[src]

Create a new device using provided driver context.

pub fn physical_device(&self) -> PhysicalDevice[src]

Get the PhysicalDevice selected when this Device was created.

pub fn logical_device(&self) -> Arc<LogicalDevice>[src]

Get the underlying vulkano logical device.

The result can be useful for creating simple resources that don't require much usage of gaclen's functionality.

Trait Implementations

impl Debug for Device[src]

Auto Trait Implementations

impl !RefUnwindSafe for Device

impl !Send for Device

impl !Sync for Device

impl Unpin for Device

impl !UnwindSafe for Device

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> Content for T[src]

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

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

impl<T> SafeBorrow<T> for 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.