-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: optimize rendering for different platforms
- add `wgpu-profiler` as a dependency in the cargo.toml file - remove the `wgpu-profiler` dependency from the old location in the cargo.toml file - introduce `wgpu_profiler` usage within `src/renderer.rs` for platforms other than macos - initialize `gpuprofiler` object conditionally in `renderer` struct based on the platform - refactor the `draw_mask` function for platform specific contexts - adjust render pass creation logic for offscreen copy and layer rendering based on platform - scope the `drawable` rendering based on platform conditions
- Loading branch information
Showing
2 changed files
with
80 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters