This commit is contained in:
STP
2023-11-10 10:23:11 -05:00
parent 2f2ebb3824
commit eb5d866ade
3 changed files with 2089 additions and 42 deletions

2109
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -6,4 +6,8 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
beryllium = "*"
env_logger = "0.10.1"
log = "0.4.20"
pollster = "0.3.0"
wgpu = "0.18.0"
winit = "0.29.3"

View File

@@ -1,4 +1,14 @@
fn main() {
println!("Hello world");
}
use winit::{
event::*,
event_loop::{ControlFlow, EventLoop},
window::WindowBuilder,
};
fn main() {
env_logger::init(); // Necessary for logging within WGPU
let event_loop = EventLoop::new(); // Loop provided by winit for handling window events
let window = WindowBuilder::new().build(&event_loop).unwrap();
// Opens the window and starts processing events (although no events are handled yet)
event_loop.run(move |event, _, control_flow| {});
}