Add scene argument to KRRenderGraph::render

This commit is contained in:
2024-03-10 16:45:04 -07:00
parent 1912ccd63e
commit fa96ffefdf
3 changed files with 3 additions and 3 deletions

View File

@@ -146,7 +146,7 @@ KRRenderPass* KRRenderGraph::getRenderPass(RenderPassType type)
return nullptr;
}
void KRRenderGraph::render(VkCommandBuffer &commandBuffer, KRSurface& surface)
void KRRenderGraph::render(VkCommandBuffer &commandBuffer, KRSurface& surface, KRScene* scene)
{
for(KRRenderPass* pass : m_renderPasses) {
pass->begin(commandBuffer, surface);

View File

@@ -53,7 +53,7 @@ public:
int addAttachment(const char* name, VkFormat format);
void addRenderPass(KRDevice& device, const RenderPassInfo& info);
KRRenderPass* getRenderPass(RenderPassType type);
void render(VkCommandBuffer &commandBuffer, KRSurface& surface);
void render(VkCommandBuffer &commandBuffer, KRSurface& surface, KRScene* scene);
void destroy(KRDevice& device);
private:

View File

@@ -368,5 +368,5 @@ void KRSurface::endFrame()
void KRSurface::renderBlackFrame(VkCommandBuffer &commandBuffer)
{
m_blackFrameRenderGraph->render(commandBuffer, *this);
m_blackFrameRenderGraph->render(commandBuffer, *this, nullptr);
}