We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b623a6 commit 81a7c3dCopy full SHA for 81a7c3d
src/main.rs
@@ -19,14 +19,17 @@ use wgpu::{
19
use winit::{
20
event::{Event, WindowEvent},
21
event_loop::EventLoop,
22
- window::Window,
+ window::{Window, WindowBuilder},
23
};
24
25
#[tokio::main]
26
async fn main() {
27
// Setup windowing
28
let event_loop = EventLoop::new().expect("New event loop");
29
- let window = Window::new(&event_loop).expect("New window");
+ let window = WindowBuilder::new()
30
+ .with_title("Random Shader Window")
31
+ .build(&event_loop)
32
+ .expect("New window");
33
34
// Setup the app
35
let mut app = App::new(window).await;
0 commit comments