Remove image layout transitions

This commit is contained in:
Patrick Nicolas
2026-04-11 16:55:02 +02:00
parent 74e94c75e8
commit fe414c4450
8 changed files with 29 additions and 29 deletions
+2 -2
View File
@@ -180,7 +180,7 @@ std::pair<bool, vk::Semaphore> video_encoder_x264::present_image(vk::Image y_cbc
{
cmd_buf.copyImageToBuffer(
y_cbcr,
vk::ImageLayout::eTransferSrcOptimal,
vk::ImageLayout::eGeneral,
in[slot].luma,
vk::BufferImageCopy{
.bufferRowLength = chroma_width * 2,
@@ -196,7 +196,7 @@ std::pair<bool, vk::Semaphore> video_encoder_x264::present_image(vk::Image y_cbc
}});
cmd_buf.copyImageToBuffer(
y_cbcr,
vk::ImageLayout::eTransferSrcOptimal,
vk::ImageLayout::eGeneral,
in[slot].chroma,
vk::BufferImageCopy{
.bufferRowLength = chroma_width,