wgpu 31.0.0

Cross-platform, safe, pure-rust graphics API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*!
# Debugging Performance Issues

If you're encountering performance problems, here's a checklist:

- Are you building with `--release`? (Don't laugh!) Development-profile
  builds trade overhead for diagnostic ability:
  - [`InstanceFlags::DEBUG`] is set by default in development builds, which
    enables platform-level validation, like the Vulkan validation layers.
  - The Rust compiler doesn't optimize the generated machine code.
  - Development builds have more assertions enabled.

Please add more checklist items, based on your experience.
*/

use crate::InstanceFlags;