56 VkMemoryPropertyFlags properties);
68 void copy(
void* data, VkCommandPool commandPool);
133 void update(VkExtent2D swapChainExtent,
float x,
float y,
134 float rotation,
float x_size,
float y_size);
166 void update(glm::vec3 color);
Used to store buffers in GPU.
VkBuffer buffer
The buffer.
VkDeviceSize size
The size of the buffer.
void destroy()
Destroys the buffer and frees the memory.
void copy(void *data, VkCommandPool commandPool)
Copies the data to the buffer.
void create(Chronos::Engine::Device device, VkBufferUsageFlags flags, VkMemoryPropertyFlags properties)
This is used to initialize the buffer.
VkDeviceMemory memory
The device memory of the buffer.
Chronos::Engine::Device device
The device on which the buffer is stored.
This is a buffer for storing and updating the color of the shape.
void update(glm::vec3 color)
Updates the buffer with the new color.
void create(Chronos::Engine::Device device)
Creates the buffer and maps the memory.
This initializes, manages and destroys the logical and physical devices(GPU).
Contains the Device class.