pub struct Device { /* private fields */ }Implementations§
Source§impl Device
impl Device
pub fn logical_device(&self) -> &Device
pub fn physical_device(&self) -> PhysicalDevice
pub fn properties(&self) -> &PhysicalDeviceProperties
pub fn queues(&self) -> &[QueueAllocation]
pub fn get_queue(&self, family_index: u32, queue_index: u32) -> Queue
pub fn find_memory_type( &self, instance: &Instance, type_filter: u32, properties: MemoryPropertyFlags, ) -> Result<u32, Error>
pub fn pad_uniform_buffer_size(&self, original_size: usize) -> usize
pub fn destroy(&mut self)
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnsafeUnpin for Device
impl UnwindSafe for Device
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more