Skip to content

Instantly share code, notes, and snippets.

Avatar

Jon Kelley jkelleyrtp

View GitHub Profile
View winit-wgpu-tokio.rs
use tokio::{runtime::Builder, sync::{mpsc}};
use winit::{event::{Event, WindowEvent}, event_loop::{ControlFlow, EventLoop}, window::{Window, WindowBuilder}};
pub struct Gpu {
pub surface: wgpu::Surface,
pub device: wgpu::Device,
pub queue: wgpu::Queue,
pub sc_desc: wgpu::SwapChainDescriptor,
pub swap_chain: wgpu::SwapChain,
View keybase.md

Keybase proof

I hereby claim:

  • I am jkelleyrtp on github.
  • I am jkelleyrtp (https://keybase.io/jkelleyrtp) on keybase.
  • I have a public key ASC9lYFL_BAdEDf5sFtO1K9nRBh1ZVixwypItG7p7f8oIgo

To claim this, I am signing this object: