Skip to content

Commit

Permalink
Migrate "with_winit" examples to winit's new "app" API (#628)
Browse files Browse the repository at this point in the history
Second round of #626

Currently, this crashes with the following on my local, so I think I'm
doing something wrong.

```
     Running `target\debug\with_winit_bin.exe`
[2024-07-15T15:33:30.317Z ERROR wgpu_hal::vulkan::instance] GENERAL [Loader Message (0x0)]
        loader_scanned_icd_add: Driver C:\Windows\System32\DriverStore\FileRepository\u0379858.inf_amd64_1719b9caae095668\B377432\.\amdvlk64.dll says it supports interface version 6 but still exports core entrypoints (Policy #LDP_DRIVER_6)
[2024-07-15T15:33:30.318Z ERROR wgpu_hal::vulkan::instance]     objects: (type: INSTANCE, hndl: 0x1ca928fbea0, name: ?)
Initialising in parallel using 14 threads
Parsed svg Ghostscript_Tiger in 8.3298ms
Encoded svg Ghostscript_Tiger in 893.9µs
thread 'main' panicked at examples\with_winit\src\lib.rs:511:22:
failed to get surface texture: Timeout
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: process didn't exit successfully: `target\debug\with_winit_bin.exe` (exit code: 101)

```
  • Loading branch information
yutannihilation authored Jul 17, 2024
1 parent a59cc8b commit 6a9e093
Show file tree
Hide file tree
Showing 2 changed files with 585 additions and 523 deletions.
4 changes: 2 additions & 2 deletions examples/with_winit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ clap = { workspace = true, features = ["derive"] }
pollster = { workspace = true }
wgpu-profiler = { workspace = true, optional = true }

winit = "0.30.0"
winit = "0.30.3"
log = { workspace = true }

# We're still using env-logger, but we want to use tracing spans to allow using
Expand All @@ -52,7 +52,7 @@ notify-debouncer-mini = "0.4.1"


[target.'cfg(target_os = "android")'.dependencies]
winit = { version = "0.30.0", features = ["android-native-activity"] }
winit = { version = "0.30.3", features = ["android-native-activity"] }
android_logger = "0.13.3"

tracing_android_trace = "0.1.0"
Expand Down
Loading

0 comments on commit 6a9e093

Please sign in to comment.