🚀 Init public commit
This commit is contained in:
commit
62fbf6d17c
42 changed files with 7433 additions and 0 deletions
11
crates/grid-shader/Cargo.toml
Normal file
11
crates/grid-shader/Cargo.toml
Normal file
|
@ -0,0 +1,11 @@
|
|||
[package]
|
||||
name = "grid-shader"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
publish = false
|
||||
|
||||
[dependencies]
|
||||
env_logger = "0.11.6"
|
||||
log = "0.4.25"
|
||||
wgpu = "26.0.1"
|
||||
winit = "0.30.11"
|
32
crates/grid-shader/src/lib.rs
Normal file
32
crates/grid-shader/src/lib.rs
Normal file
|
@ -0,0 +1,32 @@
|
|||
// use winit::{
|
||||
// event::*,
|
||||
// event_loop::EventLoop,
|
||||
// keyboard::{KeyCode, PhysicalKey},
|
||||
// };
|
||||
|
||||
// TODO
|
||||
pub fn run() {
|
||||
// env_logger::init();
|
||||
// let event_loop = EventLoop::new().unwrap();
|
||||
// let window = WindowBuilder::new().build(&event_loop).unwrap();
|
||||
|
||||
// let _ = event_loop.run(move |event, control_flow| match event {
|
||||
// Event::WindowEvent {
|
||||
// ref event,
|
||||
// window_id,
|
||||
// } if window_id == window.id() => match event {
|
||||
// WindowEvent::CloseRequested
|
||||
// | WindowEvent::KeyboardInput {
|
||||
// event:
|
||||
// KeyEvent {
|
||||
// state: ElementState::Pressed,
|
||||
// physical_key: PhysicalKey::Code(KeyCode::Escape),
|
||||
// ..
|
||||
// },
|
||||
// ..
|
||||
// } => control_flow.exit(),
|
||||
// _ => {}
|
||||
// },
|
||||
// _ => {}
|
||||
// });
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue