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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user