25 lines
414 B
C
25 lines
414 B
C
#pragma once
|
|
|
|
#include <utility>
|
|
#include <volk.h>
|
|
|
|
struct RenderDevice;
|
|
|
|
struct Frame
|
|
{
|
|
VkCommandPool commandPool;
|
|
VkCommandBuffer commandBuffer;
|
|
VkSemaphore imageAcquiredSemaphore;
|
|
VkSemaphore renderFinishedSemaphore;
|
|
VkFence frameReadyToReuse;
|
|
|
|
[[nodiscard]] bool isInit() const;
|
|
|
|
Frame(VkDevice device, uint32_t directQueueFamilyIndex);
|
|
|
|
void cleanup(RenderDevice const& renderDevice);
|
|
|
|
~Frame();
|
|
};
|
|
|