2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #4522 from lioncash/vulk-copy

vulkan/wrapper: Avoid unnecessary copy in EnumerateInstanceExtensionProperties()
This commit is contained in:
bunnei 2020-08-18 19:31:35 -04:00 committed by GitHub
commit 2d2e235bcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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(