pub struct Queue { /* private fields */ }Available on
vulkan only.Implementations§
Source§impl Queue
impl Queue
pub fn raw_device(&self) -> &Device
pub fn add_signal_semaphore( &self, semaphore: Semaphore, semaphore_value: Option<u64>, )
Sourcepub fn remove_signal_semaphore(&self, semaphore: Semaphore) -> bool
pub fn remove_signal_semaphore(&self, semaphore: Semaphore) -> bool
Remove semaphore from the pending signal list if it is still present.
Returns true if the semaphore was found and removed. If the submit
already consumed it, this is a harmless no-op that returns false.
Sourcepub fn add_wait_semaphore(
&self,
semaphore: Semaphore,
semaphore_value: Option<u64>,
stage: PipelineStageFlags,
)
pub fn add_wait_semaphore( &self, semaphore: Semaphore, semaphore_value: Option<u64>, stage: PipelineStageFlags, )
Stage a semaphore wait on the next crate::Queue::submit call.
semaphore_value selects the kind of payload the wait targets:
Some(value)- wait untilsemaphore(a timeline semaphore) has been signalled to at leastvalue.None- wait on a binary semaphore signal.
stage is the pipeline stage at which the wait blocks downstream
work (e.g. vk::PipelineStageFlags::TOP_OF_PIPE to gate the
entire submission, or a more specific stage when only that stage
reads the synchronised resource).
Sourcepub fn remove_wait_semaphore(&self, semaphore: Semaphore) -> bool
pub fn remove_wait_semaphore(&self, semaphore: Semaphore) -> bool
Remove semaphore from the pending wait list if it is still present.
Returns true if the semaphore was found and removed. If the submit
already consumed it, this is a no-op that returns false.
Trait Implementations§
Source§impl DynResource for Queue
impl DynResource for Queue
Source§impl Queue for Queue
impl Queue for Queue
type A = Api
Source§unsafe fn submit(
&self,
command_buffers: &[&CommandBuffer],
surface_textures: &[&SurfaceTexture],
(signal_fence, signal_value): (&Fence, FenceValue),
) -> Result<(), DeviceError>
unsafe fn submit( &self, command_buffers: &[&CommandBuffer], surface_textures: &[&SurfaceTexture], (signal_fence, signal_value): (&Fence, FenceValue), ) -> Result<(), DeviceError>
Submit
command_buffers for execution on GPU. Read moreSource§unsafe fn present(
&self,
surface: &Surface,
texture: SurfaceTexture,
) -> Result<(), SurfaceError>
unsafe fn present( &self, surface: &Surface, texture: SurfaceTexture, ) -> Result<(), SurfaceError>
Present a surface texture to the screen. Read more
unsafe fn get_timestamp_period(&self) -> f32
Source§unsafe fn wait_for_idle(&self) -> Result<(), DeviceError>
unsafe fn wait_for_idle(&self) -> Result<(), DeviceError>
Block until all previously submitted work on this queue has completed,
including any pending presentations. Read more
Auto Trait Implementations§
impl !Freeze for Queue
impl !RefUnwindSafe for Queue
impl !UnwindSafe for Queue
impl Send for Queue
impl Sync for Queue
impl Unpin for Queue
impl UnsafeUnpin 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