pub struct D3D11Frame<'borrow> { /* private fields */ }Expand description
A copy of the sender’s D3D11 frame record (qar_render_sender_frame_d3d11): its views, its
shared textures and their keyed-mutex synchronization. From
crate::OwnedFrame::d3d11_frame or crate::Frame::d3d11_frame inside a frame cycle,
or crate::RenderSender::d3d11_frame_state outside one. The textures it lends live as
long as the borrow it was taken from.
Implementations§
Source§impl D3D11Frame<'_>
impl D3D11Frame<'_>
Sourcepub fn as_raw(&self) -> &QarVideoFrameD3D11
pub fn as_raw(&self) -> &QarVideoFrameD3D11
The record as the library wrote it, for C helpers that take it.
Sourcepub fn views(&self) -> Vec<VideoFrameView>
pub fn views(&self) -> Vec<VideoFrameView>
The frame’s views: which texture, which rectangle, which eye, color or depth.
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 same index selects the view’s
pose and field of view on the frame (crate::OwnedFrame::view).
Sourcepub fn texture_count(&self) -> usize
pub fn texture_count(&self) -> usize
Number of shared textures in the frame.
Sourcepub fn texture(&self, index: usize) -> Option<D3D11Texture<'_>>
pub fn texture(&self, index: usize) -> Option<D3D11Texture<'_>>
The texture a view’s texture_index names.
Sourcepub fn textures(&self) -> Vec<D3D11Texture<'_>>
pub fn textures(&self) -> Vec<D3D11Texture<'_>>
Every shared texture of the frame, in texture_index order.
Sourcepub fn keyed_mutexes(&self) -> Vec<D3D11KeyedMutex<'_>>
pub fn keyed_mutexes(&self) -> Vec<D3D11KeyedMutex<'_>>
One entry per texture when the application drives the keyed mutexes
(acquire_keyed_mutex_sync false); empty when no external synchronization is needed.