vk: "Improve" initialization hack
- Change default alpha to 1 from 0 - TODO: Implement memory tagging for synchronizing this
This commit is contained in:
@@ -226,7 +226,7 @@ namespace vk
|
|||||||
VkImageSubresourceRange range{ surface->aspect(), 0, 1, 0, 1 };
|
VkImageSubresourceRange range{ surface->aspect(), 0, 1, 0, 1 };
|
||||||
if (surface->aspect() & VK_IMAGE_ASPECT_COLOR_BIT)
|
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);
|
vkCmdClearColorImage(cmd, surface->value, surface->current_layout, &color, 1, &range);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user