[−][src]Struct gaclen::graphics::device::Device
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Content for T
[src]
fn ref_from_ptr(ptr: *mut c_void, size: usize) -> Option<*mut T>
[src]
fn is_size_suitable(size: usize) -> bool
[src]
fn indiv_size() -> usize
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SafeBorrow<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,