Module framework

Module framework 

Source

StructsΒ§

App πŸ”’
The main application struct, implementing winit’s [ApplicationHandler].
ExampleContext πŸ”’
Context containing global wgpu resources.
FrameCounter πŸ”’
SurfaceWrapper πŸ”’
Wrapper type which manages the surface and surface configuration.

EnumsΒ§

AppAction πŸ”’
User event sent via [EventLoopProxy] to deliver async initialization results back to the main event loop.
AppState πŸ”’

TraitsΒ§

Example

FunctionsΒ§

init_logger πŸ”’
run
spawn πŸ”’
Runs a future to completion. On native this blocks via pollster, on wasm this spawns a local task. This allows the same async wgpu initialization code to work on both platforms.
start πŸ”’