Monado OpenXR Runtime
|
Per frame sub-allocation into a buffer, used to reduce the number of UBO objects we need to create. More...
#include <render/render_interface.h>
Data Fields | |
VkBuffer | buffer |
The buffer this is allocated from, it's the callers responsibility to keep it alive for as long as the sub-allocation is used. More... | |
VkDeviceSize | size |
Size of sub-allocation. More... | |
VkDeviceSize | offset |
Offset into buffer. More... | |
Per frame sub-allocation into a buffer, used to reduce the number of UBO objects we need to create.
There is no way to free a sub-allocation, this is done implicitly at the end of the frame when render_sub_alloc_tracker is zeroed out.
VkBuffer render_sub_alloc::buffer |
The buffer this is allocated from, it's the callers responsibility to keep it alive for as long as the sub-allocation is used.
VkDeviceSize render_sub_alloc::offset |
Offset into buffer.
VkDeviceSize render_sub_alloc::size |
Size of sub-allocation.