[−][src]Struct thyme::WgpuRenderer
The adapter registers image and font data as textures, and renders each frame.
This renderer is implemented fairly naively at present and there is definitely room for optimization. However, it is nonetheless already quite fast.
See the thyme examples for how to setup and use this renderer.
Implementations
impl WgpuRenderer
[src]
pub fn new(device: Rc<Device>, queue: Rc<Queue>) -> WgpuRenderer
[src]
Creates a new wgpu renderer, using the specified device
and queue
. For now, these must be
wrapped in an Rc so the renderer can hold on to a reference, but this should be relaxed in the future.
pub fn draw_frame<'a>(
&'a mut self,
frame: Frame,
render_pass: &mut RenderPass<'a>
)
[src]
&'a mut self,
frame: Frame,
render_pass: &mut RenderPass<'a>
)
Draws the current Frame
to the screen
Trait Implementations
impl<'a> Renderer for WgpuRenderer
[src]
Auto Trait Implementations
impl !RefUnwindSafe for WgpuRenderer
impl !Send for WgpuRenderer
impl !Sync for WgpuRenderer
impl Unpin for WgpuRenderer
impl !UnwindSafe for WgpuRenderer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,