Module viewer

Source

Structs§

GpuResources
All the GpuResources are kept together to be able to easily recreate them
Runner
The Runner for managing the event loop and time based scene updates
Viewer
Viewer encapsulates the window and event managing of the app. The viewer contains a Window, a Scene and a Renderer. Typically the viewer is used by calling Viewer::run which automatically spins a rendering loop and processes keyboard and mouse events. The rendering loop can also be created manually by running Viewer::update in a loop {}

Enums§

CustomEvent
Custom resize event emited by canvas resizes on the web.

Functions§

enumerate_adapters
get_adapter
supported_backends
We target Vulkan for native and WebGL for wasm. We only use Vulkan for native because that allows us to use the PyTorch and wgpu interoperability