pub struct DuplicateContext { /* private fields */ }Expand description
Stateless.
Implementations§
source§impl DuplicateContext
impl DuplicateContext
pub fn simple_capturer(&self) -> Result<SimpleCapturer<'_>>
source§impl DuplicateContext
impl DuplicateContext
pub fn new( device: ID3D11Device, device_context: ID3D11DeviceContext, output: IDXGIOutput1, output_duplication: IDXGIOutputDuplication, timeout_ms: u32 ) -> Self
pub fn desc(&self) -> Result<DXGI_OUTPUT_DESC>
pub fn create_readable_texture( &self ) -> Result<(ID3D11Texture2D, DXGI_OUTPUT_DESC)>
pub fn acquire_next_frame( &self, readable_texture: &ID3D11Texture2D ) -> Result<(IDXGISurface1, DXGI_OUTDUPL_FRAME_INFO)>
pub fn capture_frame( &self, dest: *mut u8, len: usize, readable_texture: &ID3D11Texture2D ) -> Result<DXGI_OUTDUPL_FRAME_INFO>
Auto Trait Implementations§
impl RefUnwindSafe for DuplicateContext
impl !Send for DuplicateContext
impl !Sync for DuplicateContext
impl Unpin for DuplicateContext
impl UnwindSafe for DuplicateContext
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