-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Support descriptor arrays which are shorter than the BGL #1995
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
Conversation
ba0576e to
827c6e8
Compare
|
Do not merge. There are vulkan issues, specifically we need to turn on VK_DESCRIPTOR_BINDING_PARTIALLY_BOUND_BIT. |
da022d7 to
b0e76a9
Compare
|
Alright this is ready to go. Needs a thorough comb through as it blew up in scope quite a bit. |
b0e76a9 to
b74eba9
Compare
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.
Thank you!
I'm going to make another pass after this round of changes.
298bb74 to
4f65cbe
Compare
|
Alright, take another look at this, updated with comments and a new UAB strategy. |
bf4b0fd to
4804d5e
Compare
09369ef to
cb0827b
Compare
|
Alright, third time's the charm, will test this in a minute. |
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 looks great! Just a few nits left
cb0827b to
bd4a9e6
Compare
|
Nightly fail is unrelated. |
| raw_device: ash::Device, | ||
| handle_is_owned: bool, | ||
| enabled_extensions: &[&'static CStr], | ||
| uab_types: super::UpdateAfterBindTypes, |
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.
wgpu_hal::vulkan is private so I am unable to call the function with this type. We either have to make the vulkan module public or somehow export this in wgpu_hal::api::Vulkan.
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.
Ack, I didn't realize that was public. Could you file an issue and I'll get a patch going tomorrow.
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.
Just filed the issue. Thank you!
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.
I didn't notice this discussion, I already opened a PR for the fix: #2069
| } | ||
|
|
||
| impl UpdateAfterBindTypes { | ||
| fn from_limits(limits: &wgt::Limits, phd_limits: &vk::PhysicalDeviceLimits) -> Self { |
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 will probably have to be public as well. I'd expect to be able to construct an UpdateAfterBindTypes if I need to pass it into a public api.
Connections
Closes #1635
Closes #1111
Description
This allows BG arrays to have fewer elements than are in the BGLs. As long as that element count is non-zero.
Testing
Rend3