Module framework
wgpu_
examples
29.0.0
Module framework
Module Items
Structs
Enums
Traits
Functions
In crate wgpu_
examples
wgpu_examples
Module
framework
Copy item path
Source
Structs
Β§
App
π
The main application struct, implementing winitβs [
ApplicationHandler
].
Example
Context
π
Context containing global wgpu resources.
Frame
Counter
π
Surface
Wrapper
π
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
π