aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorChris Forbes <chrisforbes@google.com>2016-05-20 17:14:32 +1200
committerChris Forbes <chrisforbes@google.com>2016-05-23 11:15:19 +1200
commit34c2c1b598abfb812cc2ca56f99bbaf93c5e6757 (patch)
tree28bcc55d61db622f2061607f642d5c63c260aced /layers/core_validation.cpp
parent73d109fd9c22c19901a9838c33d8e7fdbe736d50 (diff)
downloadusermoji-34c2c1b598abfb812cc2ca56f99bbaf93c5e6757.tar.xz
layers: Use getDescriptorSetLayout helper in more places
Signed-off-by: Chris Forbes <chrisforbes@google.com>
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index 1bf27e2d..b182ea02 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -5846,13 +5846,7 @@ VKAPI_ATTR VkResult VKAPI_CALL CreatePipelineLayout(VkDevice device, const VkPip
plNode.setLayouts.resize(pCreateInfo->setLayoutCount);
for (i = 0; i < pCreateInfo->setLayoutCount; ++i) {
plNode.descriptorSetLayouts[i] = pCreateInfo->pSetLayouts[i];
- auto set_layout_it = dev_data->descriptorSetLayoutMap.find(pCreateInfo->pSetLayouts[i]);
- if (set_layout_it != dev_data->descriptorSetLayoutMap.end()) {
- plNode.setLayouts[i] = set_layout_it->second;
- }
- else {
- plNode.setLayouts[i] = nullptr;
- }
+ plNode.setLayouts[i] = getDescriptorSetLayout(dev_data, pCreateInfo->pSetLayouts[i]);
}
plNode.pushConstantRanges.resize(pCreateInfo->pushConstantRangeCount);
for (i = 0; i < pCreateInfo->pushConstantRangeCount; ++i) {