You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The size member of the VkMemoryRequirements object obtained through vkGetBufferMemoryRequirements is always the size of the entire buffer. At the same time, there is no way to construct a VkMemoryRequirements object with arbitrary contents.
So when allocating device memory pages for sparse residency buffers, it is necessary to modify the size member of this class to the size of the memory page being requested before passing it to functions like vmaAllocateMemoryPages.
The text was updated successfully, but these errors were encountered:
Question
The
size
member of theVkMemoryRequirements
object obtained throughvkGetBufferMemoryRequirements
is always the size of the entire buffer. At the same time, there is no way to construct aVkMemoryRequirements
object with arbitrary contents.So when allocating device memory pages for sparse residency buffers, it is necessary to modify the size member of this class to the size of the memory page being requested before passing it to functions like
vmaAllocateMemoryPages
.The text was updated successfully, but these errors were encountered: