pub trait Signal: Any {
// Provided methods
fn init(&mut self, _engine: &mut Engine) { ... }
fn frame(
&mut self,
_engine: &mut Engine,
_encoder: &mut CommandEncoder,
_view: &TextureView,
) { ... }
}Expand description
Allows all events to be fetched directly, making it easier to add custom additions to the engine.
Provided Methods§
Sourcefn init(&mut self, _engine: &mut Engine)
fn init(&mut self, _engine: &mut Engine)
This is ran as soon as the engine is properly initialized and all components are ready
Sourcefn frame(
&mut self,
_engine: &mut Engine,
_encoder: &mut CommandEncoder,
_view: &TextureView,
)
fn frame( &mut self, _engine: &mut Engine, _encoder: &mut CommandEncoder, _view: &TextureView, )
ran before the frame is rendered