pub struct Renderer<'a> { /* private fields */ }Expand description
Window Renderer.
Supports rendering RGBA or NV12 hardware or software textures to system native windows.
Note that the renderer uses a hardware implementation by default, i.e. it uses the underlying GPU device, and the use of software devices is not currently supported.
Implementations§
Source§impl<'a> Renderer<'a>
impl<'a> Renderer<'a>
pub fn new<T: Into<SurfaceTarget<'a>>>( options: RendererOptions<T>, ) -> Result<Self, GraphicsError>
pub fn submit(&mut self, texture: Texture<'_>) -> Result<(), GraphicsError>
Auto Trait Implementations§
impl<'a> !Freeze for Renderer<'a>
impl<'a> !RefUnwindSafe for Renderer<'a>
impl<'a> Send for Renderer<'a>
impl<'a> Sync for Renderer<'a>
impl<'a> Unpin for Renderer<'a>
impl<'a> !UnwindSafe for Renderer<'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