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

Bump to latest wgpu-core #95

Merged
merged 6 commits into from
May 16, 2021
Merged

Bump to latest wgpu-core #95

merged 6 commits into from
May 16, 2021

Conversation

almarklein
Copy link
Collaborator

@almarklein almarklein commented May 12, 2021

  • Bump to wgpu-core (gets newer Naga too).
  • Some fixes to adjust to changes in wgpu-core.
  • Implement missing pieces in bind groups and bind group layouts (only buffers were supported so far).

@almarklein almarklein marked this pull request as ready for review May 15, 2021 19:25
@almarklein
Copy link
Collaborator Author

This is ready for review. Thanks for the help!

@almarklein
Copy link
Collaborator Author

There may be more regressions that I'll run into (e.g. #96), but can fit those in a new PR.

I updated to the latest wgpu-core where naga was bumped to 25. In that PR you noted:

this PR doesn't currently work because Metal's backend is now required use a sizes buffer when dynamically sized arrays are present. One of the internal tests here uses them.

What exactly are the implications of that?

@almarklein
Copy link
Collaborator Author

Also fixed some (but not all) of the missing functions reported in #96

comparison: false,
},
native::WGPUSamplerBindingType_Comparison => wgt::BindingType::Sampler {
filtering: false,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should probably be true here

pub unsafe extern "C" fn wgpuQueueWriteTexture(
queue: id::QueueId,
destination: native::WGPUImageCopyTexture,
data: *const u8, // TODO: Check - this might not follow the header
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

header has *const c_void basically. Probably fine then?

@kvark
Copy link
Member

kvark commented May 16, 2021

Great stuff, thank you!
bors r+

@bors
Copy link
Contributor

bors bot commented May 16, 2021

@bors bors bot merged commit bf10e55 into gfx-rs:master May 16, 2021
@almarklein almarklein deleted the naga branch May 17, 2021 09:07
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