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§

source

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

source

fn get_dx11_texture( &self ) -> Result<(ID3D11Texture2D, DirectXPixelFormat), WindowsDx11VideoFrameError>

Implementors§