Monado OpenXR Runtime
|
Sub allocation functions. More...
Functions | |
static VkDeviceSize | align_padding_pot (VkDeviceSize size, VkDeviceSize alignment) |
void | render_sub_alloc_tracker_init (struct render_sub_alloc_tracker *rsat, struct render_buffer *buffer) |
Init a render_sub_alloc_tracker struct from a render_buffer, the caller is responsible for keeping buffer alive while the sub allocator is being used. More... | |
XRT_CHECK_RESULT VkResult | render_sub_alloc_ubo_alloc_and_get_ptr (struct vk_bundle *vk, struct render_sub_alloc_tracker *rsat, VkDeviceSize size, void **out_ptr, struct render_sub_alloc *out_rsa) |
Allocate enough memory (with constraints of UBOs) of size , return the pointer to the mapped memory or null if the buffer wasn't allocated. More... | |
XRT_CHECK_RESULT VkResult | render_sub_alloc_ubo_alloc_and_write (struct vk_bundle *vk, struct render_sub_alloc_tracker *rsat, const void *src, VkDeviceSize size, struct render_sub_alloc *out_rsa) |
Allocate enough memory (with constraints of UBOs) to hold the memory in ptr and copy that memory to the buffer using the CPU. More... | |
Sub allocation functions.