KhronosGroup / KhronosGroup/Vulkan-Docs
Should `resourceOffset` and `size` be aligned for sparse binds?
Open
- Dominant language
- JavaScript
- Stars
- 3.3k
- Forks
- 549
- Avg merge
- 5d 5h
- Merged PRs (30d)
- 2
Description
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?
Contributor guide
Assessment
This issue has not been assessed yet.