[−][src]Function mandelbrot::main
fn main()
Main function.
- Creates a window, a surface to draw on.
- Gets a GPU device from
wgpu
. - Creates the different separate views you can change to.
- Starts watcher thread that listens to OS write events and reloads fragment shader while the program is running.
- Starts the event loop, in which it passes user input events
to the current view using the
SwitchableViewManager
.