-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make codegen robust to unaltered wgpu.h from wgpu_native release
The wgpu_native specific extensions are kept in a separate header wgpu.h (compared to the main header, webgpu.h); wgpu.h has a number of little inconsistencies compared to webgpu.h: * Missing WGPU_ annotations like WGPU_ENUM_ATTRIBUTE, WGPU_EXPORT, etc. * Inconsistent whitespace for pointer types (`void*` instead of `void *`) * Non-literal enum values like `1 << 2` At the cost of making the codegen file even larger, this handles all these inconsistencies so the wgpu.h from the release can be directly used rather than the previous wgpu_extras.h I hand tweaked.
- Loading branch information
Showing
3 changed files
with
76 additions
and
256 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
Oops, something went wrong.