MCPcopy Create free account
hub / github.com/DavidPeicho/albedo / Example

Interface Example

examples/example/mod.rs:110–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110pub trait Example: 'static + Sized {
111 fn title() -> &'static str {
112 "Example"
113 }
114
115 fn new(app: &App) -> Self;
116 fn resize(&mut self, _: &App) {}
117 fn event(&mut self, _: &App, _: winit::event::WindowEvent) {}
118 fn update(&mut self, _: &App) {}
119 fn render(&mut self, platform: &App, view: &wgpu::TextureView);
120}
121
122fn run<E: Example>(event_loop: EventLoop, app: App) {
123 let mut example = E::new(&app);

Callers 6

runFunction · 0.80
add_bvhMethod · 0.80
add_bvh_indexedMethod · 0.80
runFunction · 0.80
runFunction · 0.45
renderMethod · 0.45

Implementers 1

main.rsexamples/gpu_picking/main.rs

Calls

no outgoing calls

Tested by

no test coverage detected