Glass helps you skip annoying wgpu boilerplate, winit boilerplate and window organization. You can just focus on
your
render or compute pipelines.
Example:
fn main() {
Glass::run(GlassConfig::default(), |context| {
// Create window if relevant
// context.create_window("main", WindowConfig {
// width: 1920,
// height: 1080,
// exit_on_esc: true,
// ..WindowConfig::default()
// });
Box::new(YourApp)
})
}
struct YourApp;
impl GlassApp for YourApp {}See example folder for more.