Skip to content
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

Closed
wants to merge 9 commits into from

Conversation

Sineaggi
Copy link
Contributor

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.

Copy link
Contributor

@monocodus monocodus bot left a 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

Copy link
Member

@kvark kvark left a 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> {
Copy link
Member

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.

Copy link
Member

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

@Sineaggi
Copy link
Contributor Author

Closing as in favor of building off of the excellent work done in #85

@Sineaggi Sineaggi closed this Apr 20, 2021
@Sineaggi Sineaggi deleted the more-alignment branch April 20, 2021 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants