Create wgpu surface

This commit is contained in:
Guilherme Werner
2024-02-16 19:56:32 -03:00
parent feae6c0d9d
commit 4132183bd3
4 changed files with 221 additions and 23 deletions

View File

@ -17,12 +17,16 @@ name = "renderer"
path = "src/main.rs"
[dependencies]
anyhow = "1.0"
cfg-if = "1"
env_logger = "0.10"
log = "0.4"
wgpu = "0.18"
winit = "0.28"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tokio = { version = "1.36.0", features = ["full"] }
[target.'cfg(target_arch = "wasm32")'.dependencies]
console_error_panic_hook = "0.1.6"
console_log = "1.0"