[−][src]Struct vulkayes_core::queue::Queue
An internally synchronized device queue.
Implementations
impl Queue
[src]
pub fn submit_one_fence_only(
queue: &Queue,
waits: [&Semaphore; 0],
stages: [PipelineStageFlags; 0],
buffers: [&CommandBuffer; 1],
signals: [&Semaphore; 0],
fence: Option<&Fence>
) -> Result<(), QueueSubmitError>
[src]
queue: &Queue,
waits: [&Semaphore; 0],
stages: [PipelineStageFlags; 0],
buffers: [&CommandBuffer; 1],
signals: [&Semaphore; 0],
fence: Option<&Fence>
) -> Result<(), QueueSubmitError>
pub fn submit_one(
queue: &Queue,
waits: [&Semaphore; 1],
stages: [PipelineStageFlags; 1],
buffers: [&CommandBuffer; 1],
signals: [&Semaphore; 1],
fence: Option<&Fence>
) -> Result<(), QueueSubmitError>
[src]
queue: &Queue,
waits: [&Semaphore; 1],
stages: [PipelineStageFlags; 1],
buffers: [&CommandBuffer; 1],
signals: [&Semaphore; 1],
fence: Option<&Fence>
) -> Result<(), QueueSubmitError>
Example submit function generated using the const_queue_submit! macro.
At some point in the distant future this function will become const generic and the macro will be an implementation detail.
pub fn present_one(
queue: &Queue,
waits: [&Semaphore; 1],
images: [&SwapchainImage; 1],
result_for_all: bool
) -> QueuePresentMultipleResult<[QueuePresentResult; 1]>
[src]
queue: &Queue,
waits: [&Semaphore; 1],
images: [&SwapchainImage; 1],
result_for_all: bool
) -> QueuePresentMultipleResult<[QueuePresentResult; 1]>
Example present function generated using the const_queue_present! macro.
At some point in the distant future this function will become const generic and the macro will be an implementation detail.
pub unsafe fn from_device(
device: Vrc<Device>,
flags: DeviceQueueCreateFlags,
queue_family_index: u32,
queue_index: u32
) -> Vrc<Self>
[src]
device: Vrc<Device>,
flags: DeviceQueueCreateFlags,
queue_family_index: u32,
queue_index: u32
) -> Vrc<Self>
Gets a queue from the logical device.
Safety
pub unsafe fn submit(
&self,
infos: impl AsRef<[SubmitInfo]>,
fence: Option<&Fence>
) -> Result<(), QueueSubmitError>
[src]
&self,
infos: impl AsRef<[SubmitInfo]>,
fence: Option<&Fence>
) -> Result<(), QueueSubmitError>
Submits to given queue.
Safety
See https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkQueueSubmit.html
Panic
This function will panic if the Vutex
is poisoned.
pub fn wait(&self) -> Result<(), QueueWaitError>
[src]
Waits until all outstanding operations on the queue are completed.
Panic
This function will panic if the Vutex
is poisoned.
pub const fn device(&self) -> &Vrc<Device>
[src]
pub const fn queue_family_index(&self) -> u32
[src]
pub const fn queue_index(&self) -> u32
[src]
Methods from Deref<Target = Vutex<Queue>>
pub fn lock(&self) -> Result<VutexGuard<'_, T>, BorrowMutError>
[src]
Trait Implementations
impl Borrow<Vutex<Queue>> for Queue
[src]
impl Debug for Queue
[src]
impl Deref for Queue
[src]
type Target = Vutex<Queue>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl Eq for Queue
[src]
impl<'a> From<&'a Queue> for SharingMode<[u32; 1]>
[src]
impl HasSynchronizedHandle<Queue> for Queue
[src]
fn lock_handle(&self) -> VutexGuard<'_, T>
[src]
fn lock_safe_handle(&self) -> VutexGuardSafeHandleBorrow<'_, T>
[src]
impl Hash for Queue
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Queue
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Queue> for Queue
[src]
impl PartialOrd<Queue> for Queue
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Queue
[src]
impl !Send for Queue
[src]
impl !Sync for Queue
[src]
impl Unpin for Queue
[src]
impl !UnwindSafe for Queue
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[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, 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.
pub 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>,