Added KRPipeline constructor that is not dependent on KRSurface

This commit is contained in:
2022-09-27 18:58:00 -07:00
parent a2a9714f24
commit 230783b3c9
4 changed files with 21 additions and 10 deletions

View File

@@ -232,6 +232,11 @@ uint32_t KRSurface::getHeight() const
return m_swapChain->m_extent.height;
}
Vector2i KRSurface::getDimensions() const
{
return Vector2i::Create(static_cast<int>(m_swapChain->m_extent.width), static_cast<int>(m_swapChain->m_extent.height));
}
VkFormat KRSurface::getDepthFormat() const
{
return m_swapChain->m_depthFormat;