yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

vulkan/wrapper: Avoid unnecessary copy in EnumerateInstanceExtensionProperties()

Given this is implicitly creating a std::optional, we can move the
vector into it.
This commit is contained in:
Lioncash 2020-08-14 08:23:47 -04:00
parent e050594706
commit 167d36ec3c
1 changed files with 1 additions and 1 deletions

View File

@ -786,7 +786,7 @@ std::optional<std::vector<VkExtensionProperties>> EnumerateInstanceExtensionProp
VK_SUCCESS) { VK_SUCCESS) {
return std::nullopt; return std::nullopt;
} }
return properties; return std::move(properties);
} }
std::optional<std::vector<VkLayerProperties>> EnumerateInstanceLayerProperties( std::optional<std::vector<VkLayerProperties>> EnumerateInstanceLayerProperties(