mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-11-01 04:47:53 +00:00
Merge pull request #4522 from lioncash/vulk-copy
vulkan/wrapper: Avoid unnecessary copy in EnumerateInstanceExtensionProperties()
This commit is contained in:
commit
2d2e235bcf
1 changed files with 1 additions and 1 deletions
|
@ -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