Paracetamol56 / Aminophenol-Game-engine

3D game engine written in C++17 with the Vulkan API
Apache License 2.0
0 stars 0 forks source link

Put all of the frame data in a `Frame` struct #30

Closed Paracetamol56 closed 1 year ago

Paracetamol56 commented 1 year ago

Per frame data for now :

struct Frame
   {
      VkFramebuffer frameBuffer;
      std::unique_ptr<ImageDepth> depthBuffer;

      VkSemaphore imageAvailableSemaphore;
      VkSemaphore renderFinishedSemaphore;
      VkFence inFlightFence;

      std::unique_ptr<CommandBuffer> commandBuffer;
      std::unique_ptr<UniformBuffer> uniformBuffer;
      VkDescriptorSet descriptorSet;
   };