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

Add HAL methods to update descriptor set #179

Merged
merged 2 commits into from
Jul 11, 2022
Merged

Add HAL methods to update descriptor set #179

merged 2 commits into from
Jul 11, 2022

Conversation

raphlinus
Copy link
Contributor

This patch adds the capability to the HAL to update descriptor sets.

Part of the work for #175 but might be useful for other purposes (such as window resize) and is fairly self-contained.

Note that there are rustfmt changes in unrelated areas, due to rustfmt not being reliably applied through macros. I'd like to figure out a better solution to that in CI.

raphlinus and others added 2 commits June 23, 2022 12:05
This is WIP because only the Metal implementation is added.

Part of the work for #175
Copy link
Collaborator

@dfrg dfrg left a comment

Choose a reason for hiding this comment

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

This all looks simple, clean and correct to me.

One thought on related work: we will need some support for (non-storage) image and sampler descriptors for image rendering but my inclination is to special case and encapsulate the whole render pipeline state in HAL for now and expose the detailed bits if/when it becomes necessary.

Good to merge!

@raphlinus raphlinus merged commit b8b4aad into master Jul 11, 2022
@raphlinus
Copy link
Contributor Author

Yes, image and sampler descriptors will require more code; especially for the DX12 implementation where there is a lot of granularity about which heap the descriptor is allocated into. Hopefully that will be only somewhat tedious, rather than requiring any particular trickiness.

@raphlinus raphlinus deleted the desc_update branch July 11, 2022 15:28
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