Struct vulkano::sync::NowFuture [−][src]
pub struct NowFuture { /* fields omitted */ }
Expand description
A dummy future that represents “now”.
Trait Implementations
If possible, checks whether the submission has finished. If so, gives up ownership of the resources used by these submissions. Read more
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 more
Flushes the future and submits to the GPU the actions that will permit this future to occur. Read more
Sets the future to its “complete” state, meaning that it can safely be destroyed. Read more
Returns true
if elements submitted after this future can be submitted to a different
queue than the other returned by queue()
. Read more
Returns the queue that triggers the event. Returns None
if unknown or irrelevant. Read more
fn check_buffer_access(
&self,
buffer: &dyn BufferAccess,
_: bool,
_: &Queue
) -> Result<Option<(PipelineStages, AccessFlags)>, AccessCheckError>
fn check_buffer_access(
&self,
buffer: &dyn BufferAccess,
_: bool,
_: &Queue
) -> Result<Option<(PipelineStages, AccessFlags)>, 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
fn check_image_access(
&self,
_: &dyn ImageAccess,
_: ImageLayout,
_: bool,
_: &Queue
) -> Result<Option<(PipelineStages, AccessFlags)>, AccessCheckError>
fn check_image_access(
&self,
_: &dyn ImageAccess,
_: ImageLayout,
_: bool,
_: &Queue
) -> Result<Option<(PipelineStages, AccessFlags)>, 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
Joins this future with another one, representing the moment when both events have happened.
fn then_execute<Cb>(
self,
queue: Arc<Queue>,
command_buffer: Cb
) -> Result<CommandBufferExecFuture<Self, Cb>, CommandBufferExecError> where
Self: Sized,
Cb: PrimaryCommandBuffer + 'static,
fn then_execute<Cb>(
self,
queue: Arc<Queue>,
command_buffer: Cb
) -> Result<CommandBufferExecFuture<Self, Cb>, CommandBufferExecError> where
Self: Sized,
Cb: PrimaryCommandBuffer + 'static,
Executes a command buffer after this future. Read more
fn then_execute_same_queue<Cb>(
self,
command_buffer: Cb
) -> Result<CommandBufferExecFuture<Self, Cb>, CommandBufferExecError> where
Self: Sized,
Cb: PrimaryCommandBuffer + 'static,
fn then_execute_same_queue<Cb>(
self,
command_buffer: Cb
) -> Result<CommandBufferExecFuture<Self, Cb>, CommandBufferExecError> where
Self: Sized,
Cb: PrimaryCommandBuffer + 'static,
Executes a command buffer after this future, on the same queue as the future. Read more
Signals a semaphore after this future. Returns another future that represents the signal. Read more
fn then_signal_semaphore_and_flush(
self
) -> Result<SemaphoreSignalFuture<Self>, FlushError> where
Self: Sized,
fn then_signal_semaphore_and_flush(
self
) -> Result<SemaphoreSignalFuture<Self>, FlushError> 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
Signals a fence after this future. Returns another future that represents the signal. Read more
fn then_signal_fence_and_flush(
self
) -> Result<FenceSignalFuture<Self>, FlushError> where
Self: Sized,
fn then_signal_fence_and_flush(
self
) -> Result<FenceSignalFuture<Self>, FlushError> where
Self: Sized,
Signals a fence after this future. Returns another future that represents the signal. Read more
fn then_swapchain_present<W>(
self,
queue: Arc<Queue>,
swapchain: Arc<Swapchain<W>>,
image_index: usize
) -> PresentFuture<Self, W> where
Self: Sized,
fn then_swapchain_present<W>(
self,
queue: Arc<Queue>,
swapchain: Arc<Swapchain<W>>,
image_index: usize
) -> PresentFuture<Self, W> where
Self: Sized,
Presents a swapchain image after this future. Read more
fn then_swapchain_present_incremental<W>(
self,
queue: Arc<Queue>,
swapchain: Arc<Swapchain<W>>,
image_index: usize,
present_region: PresentRegion
) -> PresentFuture<Self, W> where
Self: Sized,
fn then_swapchain_present_incremental<W>(
self,
queue: Arc<Queue>,
swapchain: Arc<Swapchain<W>>,
image_index: usize,
present_region: PresentRegion
) -> PresentFuture<Self, W> where
Self: Sized,
Same as then_swapchain_present
, except it allows specifying a present region. Read more
Auto Trait Implementations
impl RefUnwindSafe for NowFuture
impl UnwindSafe for NowFuture
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.