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

Should resourceOffset and size be aligned for sparse binds? #2255

Open
Rua opened this issue Oct 17, 2023 · 0 comments
Open

Should resourceOffset and size be aligned for sparse binds? #2255

Rua opened this issue Oct 17, 2023 · 0 comments
Assignees

Comments

@Rua
Copy link
Contributor

Rua commented Oct 17, 2023

The Sparse Resources chapter of the spec states:

The sparse block size in bytes for sparse buffers and fully-resident images is reported as VkMemoryRequirements::alignment. alignment represents both the memory alignment requirement and the binding granularity (in bytes) for sparse resources.

However, there are no VUIDs that require the resourceOffset and size fields of VkSparseMemoryBind to be aligned in this way. memoryOffset is required to be aligned (VUID-VkSparseMemoryBind-memory-01096), but no requirements seem to be placed on resourceOffset and size. This looks like an omission?

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

No branches or pull requests

2 participants