Struct vulkano::command_buffer::submit::SubmitPresentBuilder[][src]

pub struct SubmitPresentBuilder<'a> { /* fields omitted */ }

Prototype for a submission that presents a swapchain on the screen.

Implementations

impl<'a> SubmitPresentBuilder<'a>[src]

pub fn new() -> SubmitPresentBuilder<'a>[src]

Builds a new empty SubmitPresentBuilder.

pub unsafe fn add_wait_semaphore(&mut self, semaphore: &'a Semaphore)[src]

Adds a semaphore to be waited upon before the presents are executed.

Safety

  • If you submit this builder, the semaphore must be kept alive until you are guaranteed that the GPU has presented the swapchains.

  • If you submit this builder, no other queue must be waiting on these semaphores. In other words, each semaphore signal can only correspond to one semaphore wait.

  • If you submit this builder, the semaphores must be signaled when the queue execution reaches this submission, or there must be one or more submissions in queues that are going to signal these semaphores. In other words, you must not block the queue with semaphores that can’t get signaled.

  • The swapchains and semaphores must all belong to the same device.

pub unsafe fn add_swapchain<W>(
    &mut self,
    swapchain: &'a Swapchain<W>,
    image_num: u32,
    present_region: Option<&'a PresentRegion>
)
[src]

Adds an image of a swapchain to be presented.

Allows to specify a present region. Areas outside the present region can be ignored by the Vulkan implementation for optimizations purposes.

If VK_KHR_incremental_present is not enabled, the present_region parameter is ignored.

Safety

  • If you submit this builder, the swapchain must be kept alive until you are guaranteed that the GPU has finished presenting.

  • The swapchains and semaphores must all belong to the same device.

pub fn submit(self, queue: &Queue) -> Result<(), SubmitPresentError>[src]

Submits the command. Calls vkQueuePresentKHR.

Panic

Panics if no swapchain image has been added to the builder.

Trait Implementations

impl<'a> Debug for SubmitPresentBuilder<'a>[src]

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl<'a> Into<SubmitPresentBuilder<'a>> for SubmitSemaphoresWaitBuilder<'a>[src]

fn into(self) -> SubmitPresentBuilder<'a>[src]

Performs the conversion.

Auto Trait Implementations

impl<'a> RefUnwindSafe for SubmitPresentBuilder<'a>

impl<'a> !Send for SubmitPresentBuilder<'a>

impl<'a> !Sync for SubmitPresentBuilder<'a>

impl<'a> Unpin for SubmitPresentBuilder<'a>

impl<'a> UnwindSafe for SubmitPresentBuilder<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> Content for T[src]

pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>[src]

Builds a pointer to this type from a raw pointer.

pub fn is_size_suitable(usize) -> bool[src]

Returns true if the size is suitable to store a type like this.

pub fn indiv_size() -> usize[src]

Returns the size of an individual element.

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.