49 void create(VkDeviceSize bufferSize, Types type = Types::UNIFORM_BUFFER);
50 void resize(VkDeviceSize bufferSize,
bool shrink =
false);
54 [[nodiscard]] VkBuffer getBuffer()
const;
55 [[nodiscard]] VmaAllocation getBufferAllocation()
const;
56 [[nodiscard]]
void* getBufferMapped()
const;
57 [[nodiscard]] VkDeviceSize getBufferSize()
const;
58 [[nodiscard]] VkDeviceSize getBufferCapacity()
const;
59 [[nodiscard]] Types getType()
const;
61 void copyData(
void const* data, std::size_t size)
const;
65 void createBuffer(VkDeviceSize bufferSize, VkBuffer& buffer, VmaAllocation& bufferAllocation);
67 VkBuffer g_uniformBuffer;
68 VmaAllocation g_uniformBufferAllocation;
69 void* g_uniformBufferMapped;
70 VkDeviceSize g_bufferSize;
71 VkDeviceSize g_bufferCapacity;
73 mutable std::vector<uint8_t> g_uniformBuffer;
Definition C_contextAware.hpp:28
Vulkan context.
Definition C_context.hpp:70