Skip to content

Conversation

@cwfitzgerald
Copy link
Member

@cwfitzgerald cwfitzgerald commented Sep 24, 2021

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

@cwfitzgerald
Copy link
Member Author

Do not merge. There are vulkan issues, specifically we need to turn on VK_DESCRIPTOR_BINDING_PARTIALLY_BOUND_BIT.

@cwfitzgerald cwfitzgerald marked this pull request as draft September 26, 2021 03:38
@cwfitzgerald cwfitzgerald force-pushed the descriptor-array-mismatch branch 4 times, most recently from da022d7 to b0e76a9 Compare September 29, 2021 02:03
@cwfitzgerald cwfitzgerald marked this pull request as ready for review September 29, 2021 02:05
@cwfitzgerald
Copy link
Member Author

Alright this is ready to go. Needs a thorough comb through as it blew up in scope quite a bit.

@cwfitzgerald cwfitzgerald force-pushed the descriptor-array-mismatch branch from b0e76a9 to b74eba9 Compare September 29, 2021 04:04
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.

Thank you!
I'm going to make another pass after this round of changes.

@cwfitzgerald cwfitzgerald force-pushed the descriptor-array-mismatch branch 4 times, most recently from 298bb74 to 4f65cbe Compare September 29, 2021 20:17
@cwfitzgerald
Copy link
Member Author

Alright, take another look at this, updated with comments and a new UAB strategy.

@cwfitzgerald cwfitzgerald force-pushed the descriptor-array-mismatch branch 2 times, most recently from bf4b0fd to 4804d5e Compare September 29, 2021 20:32
@cwfitzgerald cwfitzgerald force-pushed the descriptor-array-mismatch branch 3 times, most recently from 09369ef to cb0827b Compare September 30, 2021 00:29
@cwfitzgerald
Copy link
Member Author

Alright, third time's the charm, will test this in a minute.

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.

This looks great! Just a few nits left

@cwfitzgerald cwfitzgerald force-pushed the descriptor-array-mismatch branch from cb0827b to bd4a9e6 Compare September 30, 2021 15:55
@cwfitzgerald
Copy link
Member Author

Nightly fail is unrelated.

@kvark kvark merged commit b679342 into gfx-rs:master Sep 30, 2021
raw_device: ash::Device,
handle_is_owned: bool,
enabled_extensions: &[&'static CStr],
uab_types: super::UpdateAfterBindTypes,
Copy link
Contributor

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.

Copy link
Member Author

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.

Copy link
Contributor

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!

Copy link
Contributor

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 {
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants