From ee175febb85d7622668fc72ff4a4cc8ce2aa3d30 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 30 Dec 2015 17:46:14 +0100 Subject: [PATCH] Add initialisers for a couple of missing things in pipeline state --- renderdoc/api/replay/vk_pipestate.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/renderdoc/api/replay/vk_pipestate.h b/renderdoc/api/replay/vk_pipestate.h index 30720923b..af8ef1a29 100644 --- a/renderdoc/api/replay/vk_pipestate.h +++ b/renderdoc/api/replay/vk_pipestate.h @@ -143,6 +143,7 @@ struct VulkanPipelineState struct SpecInfo { + SpecInfo() : specID(0) {} uint32_t specID; rdctype::array data; }; @@ -201,7 +202,7 @@ struct VulkanPipelineState struct ColorBlend { ColorBlend() - : alphaToCoverageEnable(false), logicOpEnable(false) + : alphaToCoverageEnable(false), alphaToOneEnable(false), logicOpEnable(false) { blendConst[0] = blendConst[1] = blendConst[2] = blendConst[3] = 0.0f; } @@ -260,6 +261,8 @@ struct VulkanPipelineState { struct RenderPass { + RenderPass() : depthstencilAttachment(-1) {} + ResourceId obj; // VKTODOMED renderpass and subpass information here