Struct windows_capture::frame::Frame
source · pub struct Frame<'a> { /* private fields */ }Expand description
Frame Struct Used To Get The Frame Buffer
Implementations§
source§impl<'a> Frame<'a>
impl<'a> Frame<'a>
sourcepub const fn new(
texture: ID3D11Texture2D,
frame_surface: ID3D11Texture2D,
context: &'a ID3D11DeviceContext,
width: u32,
height: u32,
color_format: ColorFormat
) -> Self
pub const fn new( texture: ID3D11Texture2D, frame_surface: ID3D11Texture2D, context: &'a ID3D11DeviceContext, width: u32, height: u32, color_format: ColorFormat ) -> Self
Craete A New Frame
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Frame<'a>
impl<'a> Send for Frame<'a>
impl<'a> Sync for Frame<'a>
impl<'a> Unpin for Frame<'a>
impl<'a> UnwindSafe for Frame<'a>
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