Skip to content

Commit 81a7c3d

Browse files
committed
Give the window a name.
1 parent 3b623a6 commit 81a7c3d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,17 @@ use wgpu::{
1919
use winit::{
2020
event::{Event, WindowEvent},
2121
event_loop::EventLoop,
22-
window::Window,
22+
window::{Window, WindowBuilder},
2323
};
2424

2525
#[tokio::main]
2626
async fn main() {
2727
// Setup windowing
2828
let event_loop = EventLoop::new().expect("New event loop");
29-
let window = Window::new(&event_loop).expect("New window");
29+
let window = WindowBuilder::new()
30+
.with_title("Random Shader Window")
31+
.build(&event_loop)
32+
.expect("New window");
3033

3134
// Setup the app
3235
let mut app = App::new(window).await;

0 commit comments

Comments
 (0)