pub struct Queue { /* private fields */ }Implementations§
Source§impl Queue
impl Queue
Sourcepub fn new(
device: Arc<Device>,
family_index: u32,
queue_index: u32,
) -> Result<Self, QueueError>
pub fn new( device: Arc<Device>, family_index: u32, queue_index: u32, ) -> Result<Self, QueueError>
Uses vkGetDeviceQueue
Sourcepub fn new_v2(
device: Arc<Device>,
queue_info: DeviceQueueInfo2Builder<'_>,
) -> Self
pub fn new_v2( device: Arc<Device>, queue_info: DeviceQueueInfo2Builder<'_>, ) -> Self
Uses vkGetDeviceQueue2
pub fn submit<'a>( &self, submit_infos: impl IntoIterator<Item = SubmitInfoBuilder<'a>>, fence: Option<&Fence>, ) -> VkResult<()>
pub fn wait_idle(&self) -> Result<(), DeviceError>
pub fn handle(&self) -> Queue
pub fn family_index(&self) -> u32
pub fn queue_index(&self) -> u32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Queue
impl RefUnwindSafe for Queue
impl Send for Queue
impl Sync for Queue
impl Unpin for Queue
impl UnwindSafe for Queue
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