-
-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add builder methods for VSync and setting wgpu backend (#78)
* Add builder methods for VSync and setting wgpu backends * enable_vsync sets the VSync mode * wgpu_backend sets the wgpu BackendBit struct * Made RequestAdapterOptions use compatible_surface by default * Internally store wgpu::PresentMode for enabling vsync This doesn't expose the PresentMode for the external api, because the variants of PresentMode aren't very obvious to people without wgpu experience. Mailbox corresponds to VSync enabled, and Immediate corresponds to VSync disabled.
- Loading branch information
Showing
1 changed file
with
42 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