pub struct Frame<'sender> { /* private fields */ }Expand description
A frame between begin_frame and show_frame, borrowing its sender.
Dropping it without Frame::show releases the frame info without
presenting.
Implementations§
Source§impl Frame<'_>
impl Frame<'_>
Sourcepub fn view(&self, view_index: usize) -> Result<ViewPose>
pub fn view(&self, view_index: usize) -> Result<ViewPose>
Pose and field of view for view view_index. The C API offers no
view count; use the number of views the sender was created with.
Sourcepub fn cpu_frame(&mut self) -> Result<CpuFrame<'_>>
pub fn cpu_frame(&mut self) -> Result<CpuFrame<'_>>
The CPU textures to write this frame’s pixels into
(qar_render_sender_frame_cpu).
Sourcepub fn vulkan_frame(&mut self) -> Result<VulkanFrame<'_>>
pub fn vulkan_frame(&mut self) -> Result<VulkanFrame<'_>>
The sender-owned Vulkan images of this frame, with the write-back of
layouts, queue family and fence; see OwnedFrame::vulkan_frame.
Sourcepub fn d3d11_frame(&self) -> Result<D3D11Frame<'_>>
pub fn d3d11_frame(&self) -> Result<D3D11Frame<'_>>
The shared D3D11 textures of this frame and the views on them; see
OwnedFrame::d3d11_frame.
Sourcepub fn show(self, params: &ShowParams) -> Result<()>
pub fn show(self, params: &ShowParams) -> Result<()>
Presents the frame (qar_render_sender_show_frame) with the near and
far planes actually used.
Trait Implementations§
Auto Trait Implementations§
impl<'sender> !RefUnwindSafe for Frame<'sender>
impl<'sender> !Send for Frame<'sender>
impl<'sender> !Sync for Frame<'sender>
impl<'sender> !UnwindSafe for Frame<'sender>
impl<'sender> Freeze for Frame<'sender>
impl<'sender> Unpin for Frame<'sender>
impl<'sender> UnsafeUnpin for Frame<'sender>
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