Minor changes
This commit is contained in:
15
main.c
15
main.c
@@ -261,16 +261,11 @@ int main(void)
|
||||
|
||||
vkCmdEndRenderingKHR(cmdbuf.vk);
|
||||
|
||||
VkImageMemoryBarrier imageMemoryBarrier = {
|
||||
.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER,
|
||||
.image = swapChain.images[swapChainImageIdx].vk,
|
||||
.newLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR,
|
||||
.subresourceRange = {
|
||||
.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
|
||||
.layerCount = 1,
|
||||
.levelCount = 1,
|
||||
},
|
||||
};
|
||||
VkImageMemoryBarrier imageMemoryBarrier = EV_DEFAULT(VkImageMemoryBarrier,
|
||||
image = swapChain.images[swapChainImageIdx].vk,
|
||||
newLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR,
|
||||
subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT
|
||||
);
|
||||
|
||||
vkCmdPipelineBarrier(cmdbuf.vk, 0, 0, 0, 0, NULL, 0, NULL, 1, &imageMemoryBarrier);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user