mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-06 21:58:09 +03:00
24 lines
452 B
C++
24 lines
452 B
C++
/*
|
|
by korenkonder
|
|
GitHub/GitLab: korenkonder
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "Buffer.hpp"
|
|
|
|
namespace Vulkan {
|
|
class DynamicBuffer : public Buffer {
|
|
public:
|
|
VkBufferUsageFlags usage;
|
|
VkDeviceSize curr_size;
|
|
uint32_t empty_frame_count;
|
|
|
|
inline DynamicBuffer() : usage(), curr_size(), empty_frame_count() {
|
|
|
|
}
|
|
|
|
bool Create(VmaAllocator allocator, size_t size, VkBufferUsageFlags usage);
|
|
};
|
|
}
|