Skip to content

Instantly share code, notes, and snippets.

@caelunshun
caelunshun / gist:b0a52181361799d358a849b30fe2d30b
Created June 28, 2021 18:59
wgpu hello-triangle with GLFW
use std::borrow::Cow;
use glfw::WindowEvent;
async fn run() {
let mut glfw = glfw::init(glfw::FAIL_ON_ERRORS).unwrap();
let (window, events) = glfw
.create_window(
1920 / 2,
1080 / 2,