Skip to main content
QAROS Rust API Dev (main) · versions: Dev (main) · Developer Guide

VulkanFrameState

Struct VulkanFrameState 

Source
pub struct VulkanFrameState<'borrow> { /* private fields */ }
Expand description

Read access to the sender-owned Vulkan frame record. From crate::RenderSender::vulkan_frame_state outside a frame cycle, or through VulkanFrame inside one.

Implementations§

Source§

impl VulkanFrameState<'_>

Source

pub fn views(&self) -> Vec<VideoFrameView>

The frame’s views: which image, which rectangle, which eye, color or depth. QuaternAR’s cube finds views by eye and kind rather than by the order they were declared in; Self::view_index does that.

Source

pub fn view_index(&self, eye: Eye, kind: ViewKind) -> Option<usize>

Index of the first view showing kind for eye, the cube’s FindFrameView. The same index selects the view’s pose and field of view on the frame (crate::OwnedFrame::view).

Source

pub fn image_count(&self) -> usize

Number of sender-owned images in the frame.

Source

pub fn image(&self, index: usize) -> Option<VulkanImage>

The image a view’s texture_index names.

Source

pub fn images(&self) -> Vec<VulkanImage>

Every image of the frame, in texture_index order.

Source

pub fn semaphore(&self) -> Semaphore

The binary semaphore the frame’s last submission must signal. Owned by QAROS; VK_NULL_HANDLE when the frame has none.

Source

pub fn fence(&self) -> Fence

The fence currently in the frame record. The cube writes null before showing; what QAROS does with a non-null fence is not documented.

Trait Implementations§

Source§

impl<'borrow> Debug for VulkanFrameState<'borrow>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'borrow> !Send for VulkanFrameState<'borrow>

§

impl<'borrow> !Sync for VulkanFrameState<'borrow>

§

impl<'borrow> !UnwindSafe for VulkanFrameState<'borrow>

§

impl<'borrow> Freeze for VulkanFrameState<'borrow>

§

impl<'borrow> RefUnwindSafe for VulkanFrameState<'borrow>

§

impl<'borrow> Unpin for VulkanFrameState<'borrow>

§

impl<'borrow> UnsafeUnpin for VulkanFrameState<'borrow>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.