vk: "Improve" initialization hack

- Change default alpha to 1 from 0
- TODO: Implement memory tagging for synchronizing this
This commit is contained in:
kd-11 2019-07-06 17:03:56 +03:00 committed by kd-11
parent 219a5382f7
commit 0cc672dcb3

View file

@ -226,7 +226,7 @@ namespace vk
VkImageSubresourceRange range{ surface->aspect(), 0, 1, 0, 1 };
if (surface->aspect() & VK_IMAGE_ASPECT_COLOR_BIT)
{
VkClearColorValue color{};
VkClearColorValue color = { 0.f, 0.f, 0.f, 1.f };
vkCmdClearColorImage(cmd, surface->value, surface->current_layout, &color, 1, &range);
}
else