c/main: Tidy peek code

This commit is contained in:
Jakob Bornecrantz 2022-09-02 17:50:41 +01:00
parent 11a4f776e5
commit dedfd022b8

View file

@ -273,15 +273,18 @@ comp_window_peek_blit(struct comp_window_peek *w, VkImage src, int32_t width, in
VK_PIPELINE_STAGE_TRANSFER_BIT, // dstStageMask
range); // subresourceRange
VkImageBlit blit = {.srcSubresource =
{
.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
.layerCount = 1,
},
.dstSubresource = {
.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
.layerCount = 1,
}};
VkImageBlit blit = {
.srcSubresource =
{
.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
.layerCount = 1,
},
.dstSubresource =
{
.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
.layerCount = 1,
},
};
blit.srcOffsets[1].x = width;
blit.srcOffsets[1].y = height;