Moving result struct instead of copying

This commit is contained in:
Vladyslav Baranovskyi
2024-07-16 21:40:24 +03:00
parent b572da31ac
commit 91a81c1e9c

View File

@@ -67,6 +67,6 @@ namespace OpenVulkano::Image
result.resolution.y = rows;
result.resolution.z = 1;
return std::make_unique<Image>(result);
return std::make_unique<Image>(std::move(result));
}
}