diff options
author | David Neto <dneto@google.com> | 2019-03-21 11:18:47 -0700 |
---|---|---|
committer | dan sinclair <dj2@everburning.com> | 2019-03-21 11:18:47 -0700 |
commit | 9a535ae83214d12db8ae6bb88de63770f6d3343d (patch) | |
tree | 3e948a49d25c83453042d1f0b1a81f7b6f6a660f /src | |
parent | 0b0f16882a88d9e31522fa5cdcc59dee020002e9 (diff) | |
download | amber-9a535ae83214d12db8ae6bb88de63770f6d3343d.tar.gz |
Initialize desc_type var to avoid aggressive warning (#402)
Diffstat (limited to 'src')
-rw-r--r-- | src/vulkan/pipeline.cc | 2 |
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; |