Commit fffee5b3 by Chris Forbes

remove remaining make_unique usage

Change-Id: I2dfc8e09daaea0f93f9737b8738fdcd2c2fae539 Reviewed-on: https://swiftshader-review.googlesource.com/c/23808Tested-by: 's avatarChris Forbes <chrisforbes@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
parent f251a6f4
...@@ -643,7 +643,7 @@ void CommandBuffer::clearColorImage(VkImage image, VkImageLayout imageLayout, co ...@@ -643,7 +643,7 @@ void CommandBuffer::clearColorImage(VkImage image, VkImageLayout imageLayout, co
for(uint32_t i = 0; i < rangeCount; i++) for(uint32_t i = 0; i < rangeCount; i++)
{ {
commands->push_back(std::make_unique<ClearColorImage>(image, pColor[i], pRanges[i])); addCommand<ClearColorImage>(image, pColor[i], pRanges[i]);
} }
} }
...@@ -654,7 +654,7 @@ void CommandBuffer::clearDepthStencilImage(VkImage image, VkImageLayout imageLay ...@@ -654,7 +654,7 @@ void CommandBuffer::clearDepthStencilImage(VkImage image, VkImageLayout imageLay
for(uint32_t i = 0; i < rangeCount; i++) for(uint32_t i = 0; i < rangeCount; i++)
{ {
commands->push_back(std::make_unique<ClearDepthStencilImage>(image, pDepthStencil[i], pRanges[i])); addCommand<ClearDepthStencilImage>(image, pDepthStencil[i], pRanges[i]);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment