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<'_>
impl VulkanFrameState<'_>
Sourcepub fn views(&self) -> Vec<VideoFrameView>
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.
Sourcepub fn view_index(&self, eye: Eye, kind: ViewKind) -> Option<usize>
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).
Sourcepub fn image_count(&self) -> usize
pub fn image_count(&self) -> usize
Number of sender-owned images in the frame.
Sourcepub fn image(&self, index: usize) -> Option<VulkanImage>
pub fn image(&self, index: usize) -> Option<VulkanImage>
The image a view’s texture_index names.
Sourcepub fn images(&self) -> Vec<VulkanImage>
pub fn images(&self) -> Vec<VulkanImage>
Every image of the frame, in texture_index order.
Trait Implementations§
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> 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