Trait crabgrab::feature::dx11::WindowsDx11VideoFrame
source · pub trait WindowsDx11VideoFrame {
// Required methods
fn get_dx11_surface(
&self
) -> Result<(IDirect3DSurface, DirectXPixelFormat), WindowsDx11VideoFrameError>;
fn get_dx11_texture(
&self
) -> Result<(ID3D11Texture2D, DirectXPixelFormat), WindowsDx11VideoFrameError>;
}
Expand description
A video frame which can yield a DX11 surface
Required Methods§
sourcefn get_dx11_surface(
&self
) -> Result<(IDirect3DSurface, DirectXPixelFormat), WindowsDx11VideoFrameError>
fn get_dx11_surface( &self ) -> Result<(IDirect3DSurface, DirectXPixelFormat), WindowsDx11VideoFrameError>
Get the DX11 surface representing the video frame’s texture memory, as well as the pixel format