38 void update(uint32_t currentFrame)
override;
41 = std::vector<uint16_t> { 0, 1, 2, 2, 3, 0 };
44 = std::vector<ColorVertex> { { { -0.5f, -0.5f } },
45 { { 0.5f, -0.5f } }, { { 0.5f, 0.5f } },
46 { { -0.5f, 0.5f } } };
52 void render(uint32_t currentFrame, uint32_t imageIndex,
53 float bgColor[3], VkViewport& viewport, VkRect2D& scissor,
54 std::vector<VkCommandBuffer>& commandBuffers)
override;
This file includes the structure of a vertex.
Used to store buffers in GPU.
void init(Chronos::Engine::Device *device, VkCommandPool commandPool, Chronos::Engine::SwapChain *swapChain, VkSampler textureSampler, VkRenderPass *renderPass)
const std::vector< uint16_t > indices
Chronos::Engine::Buffer vertexBuffer
The vertex buffer that is used to store the vertices.
std::vector< Chronos::Engine::ColorBuffer > colorBuffers
std::vector< VkShaderStageFlagBits > getDescriptorStages() override
void createDescriptorSets() override
PipelineAttributes getPipelineAttributes() override
const std::vector< ColorVertex > vertices
Chronos::Engine::Buffer indexBuffer
The index buffer that is used to store the indices.
void update(uint32_t currentFrame) override
Updates the object for the current frame.
std::vector< VkDescriptorType > getDescriptorTypes() override
Chronos::Manager::ShapeParams params
void render(uint32_t currentFrame, uint32_t imageIndex, float bgColor[3], VkViewport &viewport, VkRect2D &scissor, std::vector< VkCommandBuffer > &commandBuffers) override
void destroy() override
Destroys the object and releases associated resources.
This initializes, manages and destroys the logical and physical devices(GPU).
Abstract class for creating and managing generic graphical objects.
VkCommandPool commandPool
Chronos::Engine::SwapChain * swapChain
Chronos::Engine::Device * device
VkRenderPass * renderPass
Header file that contains common structs used in Chronos.
Contains the class for creating a generic object.
Structure defining attributes required for creating a graphics pipeline.
Parameters for creating a shape(any)