Monado OpenXR Runtime
Loading...
Searching...
No Matches
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.
 
VkDeviceSize size
 Size of sub-allocation.
 
VkDeviceSize offset
 Offset into buffer.
 

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(), and render_sub_alloc_ubo_alloc_and_get_ptr().

◆ offset

VkDeviceSize render_sub_alloc::offset

◆ size

VkDeviceSize render_sub_alloc::size

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