File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 1
- //! This is the main module of the "random-shader-window" project.
2
- //!
3
- //! It contains the main entry point of the application and the `App` struct, which represents the application itself.
4
- //! The `App` struct handles window setup, rendering, and event handling.
5
- //! I'm just using this as a playground to learn how to use wgsl, so it's not really meant to be a useful application.
6
- //!
7
- //! Alot of the render pipeline stuff is using default where possible to keep things simple so
8
- //! I can focus on the shader stuff. It'll probably be a good idea to go back and tweak some of that stuff later
9
- //! to get it to work on other platforms, but I'm not really worried about that right now.
10
-
11
1
use winit:: {
12
2
event:: { Event , WindowEvent } ,
13
3
event_loop:: EventLoop ,
@@ -51,8 +41,6 @@ async fn main() {
51
41
x : position. x as f32 ,
52
42
y : position. y as f32 ,
53
43
} ) ;
54
- // HACK: Force a redraw, because I can't figure out how to cleanly call
55
- // [window.request_redraw()] without the borrow checker complaining.
56
44
app. render ( ) ;
57
45
}
58
46
WindowEvent :: CloseRequested => {
You can’t perform that action at this time.
0 commit comments