Moved frame rendering from KRCamera to KRRenderGraph
This commit is contained in:
@@ -249,22 +249,11 @@ VkFormat KRSurface::getDepthFormat() const
|
||||
return m_swapChain->m_depthFormat;
|
||||
}
|
||||
|
||||
KRRenderPass* KRSurface::getRenderPass(RenderPassType type)
|
||||
{
|
||||
return m_renderGraphForward->getRenderPass(type);
|
||||
}
|
||||
|
||||
void KRSurface::endFrame()
|
||||
{
|
||||
m_frameIndex++;
|
||||
}
|
||||
|
||||
|
||||
void KRSurface::renderBlackFrame(VkCommandBuffer &commandBuffer)
|
||||
{
|
||||
m_renderGraphBlackFrame->render(commandBuffer, *this, nullptr);
|
||||
}
|
||||
|
||||
VkFormat KRSurface::getSurfaceFormat() const
|
||||
{
|
||||
return m_surfaceFormat.format;
|
||||
|
||||
Reference in New Issue
Block a user