Monado OpenXR Runtime
render_sub_alloc Struct Reference

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>

Collaboration diagram for render_sub_alloc:

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...
 

Detailed Description

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.

See also
render_sub_alloc_tracker

Field Documentation

◆ buffer

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.

◆ offset

VkDeviceSize render_sub_alloc::offset

Offset into buffer.

◆ size

VkDeviceSize render_sub_alloc::size

Size of sub-allocation.


The documentation for this struct was generated from the following file: