Skip to content

Commit

Permalink
fix compilation of demo with tracy feature (#66)
Browse files Browse the repository at this point in the history
* fix compilation of demo with tracy feature

* run ci checks on all targets

* can't check on all targets on wasm due to tracy native compile shenanigans

---------

Co-authored-by: Andreas Reich <[email protected]>
  • Loading branch information
Davidster and Wumpf authored Apr 2, 2024
1 parent e8fca5b commit 920b845
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ jobs:
with:
target: wasm32-unknown-unknown
- run: cargo fmt -- --check
- run: cargo clippy --locked -- -D warnings
- run: cargo clippy --locked --all-targets -- -D warnings
- run: cargo check --locked --target wasm32-unknown-unknown
- run: cargo clippy --locked --all-features -- -D warnings
- run: cargo clippy --locked --all-features --all-targets -- -D warnings
3 changes: 2 additions & 1 deletion examples/demo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ async fn run(event_loop: EventLoop<()>, window: Window) {
&queue,
)
.unwrap_or_else(|err| match err {
CreationError::TracyClientNotRunning | CreationError::TracyGpuContextCreationError(_) => {
wgpu_profiler::CreationError::TracyClientNotRunning
| wgpu_profiler::CreationError::TracyGpuContextCreationError(_) => {
println!("Failed to connect to Tracy. Continuing without Tracy integration.");
GpuProfiler::new(GpuProfilerSettings::default()).expect("Failed to create profiler")
}
Expand Down

0 comments on commit 920b845

Please sign in to comment.