Now rendering black frames rather than empty frames when scene isn't loaded, preventing some Vulkan validation errors.

Added keepColor, clearColor, and finalLayout attributes to KRRenderPass::RenderPassInfo.
Now able to render debug text on macOS.
This commit is contained in:
2024-01-14 15:36:51 -08:00
parent 0c6b0854f2
commit e6706a4e1f
7 changed files with 170 additions and 61 deletions

View File

@@ -44,8 +44,11 @@ public:
struct RenderPassInfo
{
bool clearColor;
bool keepColor;
bool clearDepth;
bool keepDepth;
bool finalPass;
};
void create(KRDevice& device, VkFormat swapChainImageFormat, VkFormat depthImageFormat, const RenderPassInfo& info);