aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/vulkan/pipeline.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vulkan/pipeline.cc b/src/vulkan/pipeline.cc
index 30833aa..7f65750 100644
--- a/src/vulkan/pipeline.cc
+++ b/src/vulkan/pipeline.cc
@@ -107,7 +107,7 @@ Result Pipeline::CreateDescriptorSetLayouts() {
// need to create its layout and there will be no bindings.
std::vector<VkDescriptorSetLayoutBinding> bindings;
for (auto& desc : info.descriptors_) {
- VkDescriptorType desc_type;
+ VkDescriptorType desc_type = VK_DESCRIPTOR_TYPE_MAX_ENUM;
Result r = ToVkDescriptorType(desc->GetType(), &desc_type);
if (!r.IsSuccess())
return r;