-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate device methods to align with webgpu-headers #77
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an autogenerated code review.
Checker summary (by rust_clippy):
The tool has found 21 warnings, 0 errors.
The .monocodus
config not found in your repo. Default config is used.
Check config documentation here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Just one note here
#[repr(C)] | ||
pub struct CDeviceDescriptor { | ||
pub struct CDeviceDescriptor<'c> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we really need the C
prefixes for these types? They are not colliding with wgt::DeviceDescriptor
, since we aren't glob-importing wgt
, so we could call them the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See also - #78 as a radical solution to this
Closing as in favor of building off of the excellent work done in #85 |
Second patch to align wgpu-native with webgpu-headers. This time focusing on the
wgpuDevice*
functions.Largest change was to
wgpuDeviceCreateBindGroupLayout
which has been rebuilt to use the*BindingLayout
structs.Also wgpuDeviceCreateShaderModule now uses
follow_chain!
macro.