aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Neto <dneto@google.com>2019-03-21 11:18:47 -0700
committerdan sinclair <dj2@everburning.com>2019-03-21 11:18:47 -0700
commit9a535ae83214d12db8ae6bb88de63770f6d3343d (patch)
tree3e948a49d25c83453042d1f0b1a81f7b6f6a660f /src
parent0b0f16882a88d9e31522fa5cdcc59dee020002e9 (diff)
downloadamber-9a535ae83214d12db8ae6bb88de63770f6d3343d.tar.gz
Initialize desc_type var to avoid aggressive warning (#402)
Diffstat (limited to 'src')
-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;