mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
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:
parent
e050594706
commit
167d36ec3c
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue