pub struct SurtrRenderer { /* private fields */ }Expand description
SurtrRenderer implements the high-performance GPU backend.
Implementations§
Source§impl SurtrRenderer
impl SurtrRenderer
Sourcepub fn begin_frame(&mut self) -> CommandEncoder
pub fn begin_frame(&mut self) -> CommandEncoder
Strike the flaming sword (begin frame).
Sourcepub fn end_frame(&mut self, encoder: CommandEncoder)
pub fn end_frame(&mut self, encoder: CommandEncoder)
Quench the blade — submits the full Muspelheim multi-pass effect: Pass 1 — Base geometry → screen (clear + all solid/glow rects) Pass 2 — Bloom extract from screen → tex_a (threshold bright pixels) Pass 3–6 — Ping-pong blur (H→B, V→A, H→B, V→A) — 4 iters Pass 7 — Additive composite tex_a → screen (glow on top)
Auto Trait Implementations§
impl !Freeze for SurtrRenderer
impl !RefUnwindSafe for SurtrRenderer
impl Send for SurtrRenderer
impl Sync for SurtrRenderer
impl Unpin for SurtrRenderer
impl UnsafeUnpin for SurtrRenderer
impl !UnwindSafe for SurtrRenderer
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.