struct UniformAllocation
Defined at line 19 of file ../../src/ui/lib/escher/renderer/uniform_allocation.h
Represents a sub-allocation from within a Vulkan uniform buffer. The valid
lifetime of this allocation is defined by the allocator that this is obtained
from.
Public Members
Buffer * buffer
vk::DeviceSize offset
vk::DeviceSize size
void * host_ptr
Public Methods
template <typename T>
T & as_ref ()
Convenient way to refer to the host-accessible memory as a typed reference.
Defined at line 28 of file ../../src/ui/lib/escher/renderer/uniform_allocation.h
template <typename T>
T * as_ptr ()
Convenient way to refer to the host-accessible memory as a typed pointer.
Defined at line 34 of file ../../src/ui/lib/escher/renderer/uniform_allocation.h