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

Support Vulkan requirement to allow write or copy beyond descriptor binding size. #2303

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

billhollings
Copy link
Contributor

  • Revert to allowing vkUpdateDescriptorSets() to write or copy beyond the end of a descriptor binding count if subsequent descriptors are of the same type. This fixes a regression caused by 7fe7423 in PR Add additional defensive code within vkUpdateDescriptorSets(). #2293, that added a guard against writing or copying past a descriptor binding size.

  • Add MVKInlineUniformBlockDescriptor::writeBytes() & readBytes() to support updating byte contents, and allow vkUpdateDescriptorSets() to break a write or copy of a large byte range into multiple inline uniform block descriptors of smaller size.

…inding size.

- Revert to allowing vkUpdateDescriptorSets() to write or copy beyond
  the end of a descriptor binding count if subsequent descriptors are of
  the same type. This fixes a regression caused by 7fe7423, that added
  a guard against writing or copying past a descriptor binding size.

- Add MVKInlineUniformBlockDescriptor::writeBytes() & readBytes() to
  support updating byte contents, and allow vkUpdateDescriptorSets()
  to break a write or copy of a large byte range into multiple inline
  uniform block descriptors of smaller size.
@billhollings billhollings merged commit 3b9e335 into KhronosGroup:main Aug 6, 2024
6 checks passed
@billhollings billhollings deleted the multi-desc-write-copy branch August 6, 2024 15:38
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