pub struct CommandBufferExecFuture<F>where
F: GpuFuture,{ /* private fields */ }Expand description
Represents a command buffer being executed by the GPU and the moment when the execution finishes.
Trait Implementations§
Source§impl<F> Debug for CommandBufferExecFuture<F>
impl<F> Debug for CommandBufferExecFuture<F>
Source§impl<F> DeviceOwned for CommandBufferExecFuture<F>where
F: GpuFuture,
impl<F> DeviceOwned for CommandBufferExecFuture<F>where
F: GpuFuture,
Source§impl<F> Drop for CommandBufferExecFuture<F>where
F: GpuFuture,
impl<F> Drop for CommandBufferExecFuture<F>where
F: GpuFuture,
Source§impl<F> GpuFuture for CommandBufferExecFuture<F>where
F: GpuFuture,
impl<F> GpuFuture for CommandBufferExecFuture<F>where
F: GpuFuture,
Source§fn cleanup_finished(&mut self)
fn cleanup_finished(&mut self)
If possible, checks whether the submission has finished. If so, gives up ownership of the
resources used by these submissions. Read more
Source§unsafe fn build_submission(
&self,
) -> Result<SubmitAnyBuilder, Validated<VulkanError>>
unsafe fn build_submission( &self, ) -> Result<SubmitAnyBuilder, Validated<VulkanError>>
Builds a submission that, if submitted, makes sure that the event represented by this
GpuFuture will happen, and possibly contains extra elements (eg. a semaphore wait or an
event wait) that makes the dependency with subsequent operations work. Read moreSource§fn flush(&self) -> Result<(), Validated<VulkanError>>
fn flush(&self) -> Result<(), Validated<VulkanError>>
Flushes the future and submits to the GPU the actions that will permit this future to
occur. Read more
Source§unsafe fn signal_finished(&self)
unsafe fn signal_finished(&self)
Sets the future to its “complete” state, meaning that it can safely be destroyed. Read more
Source§fn queue_change_allowed(&self) -> bool
fn queue_change_allowed(&self) -> bool
Returns
true if elements submitted after this future can be submitted to a different
queue than the other returned by queue().Source§fn queue(&self) -> Option<Arc<Queue>>
fn queue(&self) -> Option<Arc<Queue>>
Returns the queue that triggers the event. Returns
None if unknown or irrelevant. Read moreSource§fn check_buffer_access(
&self,
buffer: &Buffer,
range: Range<u64>,
exclusive: bool,
queue: &Queue,
) -> Result<(), AccessCheckError>
fn check_buffer_access( &self, buffer: &Buffer, range: Range<u64>, exclusive: bool, queue: &Queue, ) -> Result<(), AccessCheckError>
Checks whether submitting something after this future grants access (exclusive or shared,
depending on the parameter) to the given buffer on the given queue. Read more
Source§fn check_image_access(
&self,
image: &Image,
range: Range<u64>,
exclusive: bool,
expected_layout: ImageLayout,
queue: &Queue,
) -> Result<(), AccessCheckError>
fn check_image_access( &self, image: &Image, range: Range<u64>, exclusive: bool, expected_layout: ImageLayout, queue: &Queue, ) -> Result<(), AccessCheckError>
Checks whether submitting something after this future grants access (exclusive or shared,
depending on the parameter) to the given image on the given queue. Read more
Source§fn check_swapchain_image_acquired(
&self,
swapchain: &Swapchain,
image_index: u32,
_before: bool,
) -> Result<(), AccessCheckError>
fn check_swapchain_image_acquired( &self, swapchain: &Swapchain, image_index: u32, _before: bool, ) -> Result<(), AccessCheckError>
Checks whether accessing a swapchain image is permitted. Read more
Source§fn join<F>(self, other: F) -> JoinFuture<Self, F>
fn join<F>(self, other: F) -> JoinFuture<Self, F>
Joins this future with another one, representing the moment when both events have happened.
Source§fn then_execute(
self,
queue: Arc<Queue>,
command_buffer: Arc<impl PrimaryCommandBufferAbstract + 'static>,
) -> Result<CommandBufferExecFuture<Self>, CommandBufferExecError>where
Self: Sized,
fn then_execute(
self,
queue: Arc<Queue>,
command_buffer: Arc<impl PrimaryCommandBufferAbstract + 'static>,
) -> Result<CommandBufferExecFuture<Self>, CommandBufferExecError>where
Self: Sized,
Executes a command buffer after this future. Read more
Source§fn then_execute_same_queue(
self,
command_buffer: Arc<impl PrimaryCommandBufferAbstract + 'static>,
) -> Result<CommandBufferExecFuture<Self>, CommandBufferExecError>where
Self: Sized,
fn then_execute_same_queue(
self,
command_buffer: Arc<impl PrimaryCommandBufferAbstract + 'static>,
) -> Result<CommandBufferExecFuture<Self>, CommandBufferExecError>where
Self: Sized,
Executes a command buffer after this future, on the same queue as the future. Read more
Source§fn then_signal_semaphore(self) -> SemaphoreSignalFuture<Self>where
Self: Sized,
fn then_signal_semaphore(self) -> SemaphoreSignalFuture<Self>where
Self: Sized,
Signals a semaphore after this future. Returns another future that represents the signal. Read more
Source§fn then_signal_semaphore_and_flush(
self,
) -> Result<SemaphoreSignalFuture<Self>, Validated<VulkanError>>where
Self: Sized,
fn then_signal_semaphore_and_flush(
self,
) -> Result<SemaphoreSignalFuture<Self>, Validated<VulkanError>>where
Self: Sized,
Signals a semaphore after this future and flushes it. Returns another future that
represents the moment when the semaphore is signalled. Read more
Source§fn then_signal_fence(self) -> FenceSignalFuture<Self> ⓘwhere
Self: Sized,
fn then_signal_fence(self) -> FenceSignalFuture<Self> ⓘwhere
Self: Sized,
Signals a fence after this future. Returns another future that represents the signal. Read more
Source§fn then_signal_fence_and_flush(
self,
) -> Result<FenceSignalFuture<Self>, Validated<VulkanError>>where
Self: Sized,
fn then_signal_fence_and_flush(
self,
) -> Result<FenceSignalFuture<Self>, Validated<VulkanError>>where
Self: Sized,
Signals a fence after this future. Returns another future that represents the signal. Read more
Source§fn then_swapchain_present(
self,
queue: Arc<Queue>,
swapchain_info: SwapchainPresentInfo,
) -> PresentFuture<Self>where
Self: Sized,
fn then_swapchain_present(
self,
queue: Arc<Queue>,
swapchain_info: SwapchainPresentInfo,
) -> PresentFuture<Self>where
Self: Sized,
Presents a swapchain image after this future. Read more
Source§fn boxed(self) -> Box<dyn GpuFuture>where
Self: Sized + 'static,
fn boxed(self) -> Box<dyn GpuFuture>where
Self: Sized + 'static,
Turn the current future into a
Box<dyn GpuFuture>. Read moreSource§fn boxed_send(self) -> Box<dyn GpuFuture + Send>
fn boxed_send(self) -> Box<dyn GpuFuture + Send>
Turn the current future into a
Box<dyn GpuFuture + Send>. Read moreAuto Trait Implementations§
impl<F> !Freeze for CommandBufferExecFuture<F>
impl<F> !RefUnwindSafe for CommandBufferExecFuture<F>
impl<F> Send for CommandBufferExecFuture<F>where
F: Send,
impl<F> Sync for CommandBufferExecFuture<F>where
F: Sync,
impl<F> Unpin for CommandBufferExecFuture<F>where
F: Unpin,
impl<F> !UnwindSafe for CommandBufferExecFuture<F>
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