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 is the caller's 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 is the caller's responsibility to keep it alive for as long as the sub-allocation is used.

Referenced by do_ubo_and_src_alloc_and_write().

◆ offset

VkDeviceSize render_sub_alloc::offset

Offset into buffer.

Referenced by do_ubo_and_src_alloc_and_write().

◆ size

VkDeviceSize render_sub_alloc::size

Size of sub-allocation.

Referenced by do_ubo_and_src_alloc_and_write().


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