Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
graphite/engine/renderer/include/pipeline.hpp
2024-01-03 16:05:02 -05:00

30 lines
No EOL
523 B
C++

#pragma once
#include <vk.hpp>
struct SubmitInfo
{
//image available semaphore
VkSemaphore ias;
//current command buffer
VkCommandBuffer cmdBuf;
VkFence submitFence;
};
class Pipeline
{
public:
virtual ~Pipeline() {}
//record into command buffer
virtual void Record(VkCommandBuffer, uint32_t) {}
//submit work
virtual void Submit(SubmitInfo) {}
//we require very pipeline to have a render finished semaphore
VkSemaphore m_renderFinishedSemaphore = VK_NULL_HANDLE;
};