[][src]Struct vulkayes_core::queue::Queue

pub struct Queue { /* fields omitted */ }

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]

pub fn submit_one(
    queue: &Queue,
    waits: [&Semaphore; 1],
    stages: [PipelineStageFlags; 1],
    buffers: [&CommandBuffer; 1],
    signals: [&Semaphore; 1],
    fence: Option<&Fence>
) -> Result<(), QueueSubmitError>
[src]

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]

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]

pub unsafe fn submit(
    &self,
    infos: impl AsRef<[SubmitInfo]>,
    fence: Option<&Fence>
) -> Result<(), QueueSubmitError>
[src]

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.

impl Eq for Queue[src]

impl<'a> From<&'a Queue> for SharingMode<[u32; 1]>[src]

impl HasSynchronizedHandle<Queue> for Queue[src]

impl Hash for Queue[src]

impl Ord for Queue[src]

impl PartialEq<Queue> for Queue[src]

impl PartialOrd<Queue> for Queue[src]

Auto Trait Implementations

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

impl<T, U> Into<U> for T where
    U: From<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.