Remove image layout transitions
This commit is contained in:
@@ -445,7 +445,7 @@ std::pair<bool, vk::Semaphore> video_encoder_va::present_image(vk::Image y_cbcr,
|
||||
|
||||
cmd_buf.copyImage(
|
||||
y_cbcr,
|
||||
vk::ImageLayout::eTransferSrcOptimal,
|
||||
vk::ImageLayout::eGeneral,
|
||||
*in[slot].luma,
|
||||
vk::ImageLayout::eTransferDstOptimal,
|
||||
vk::ImageCopy{
|
||||
@@ -466,7 +466,7 @@ std::pair<bool, vk::Semaphore> video_encoder_va::present_image(vk::Image y_cbcr,
|
||||
|
||||
cmd_buf.copyImage(
|
||||
y_cbcr,
|
||||
vk::ImageLayout::eTransferSrcOptimal,
|
||||
vk::ImageLayout::eGeneral,
|
||||
*in[slot].chroma,
|
||||
vk::ImageLayout::eTransferDstOptimal,
|
||||
vk::ImageCopy{
|
||||
|
||||
@@ -400,7 +400,7 @@ std::pair<bool, vk::Semaphore> video_encoder_nvenc::present_image(vk::Image y_cb
|
||||
{
|
||||
cmd_buf.copyImageToBuffer(
|
||||
y_cbcr,
|
||||
vk::ImageLayout::eTransferSrcOptimal,
|
||||
vk::ImageLayout::eGeneral,
|
||||
*in[slot].yuv,
|
||||
std::array{
|
||||
vk::BufferImageCopy{
|
||||
|
||||
@@ -94,7 +94,7 @@ std::pair<bool, vk::Semaphore> wivrn::video_encoder_raw::present_image(vk::Image
|
||||
};
|
||||
cmd_buf.copyImageToBuffer(
|
||||
y_cbcr,
|
||||
vk::ImageLayout::eTransferSrcOptimal,
|
||||
vk::ImageLayout::eGeneral,
|
||||
buffers[slot],
|
||||
std::span(regions.data(),
|
||||
stream_idx < 2 ? 2 : 1));
|
||||
|
||||
@@ -716,7 +716,7 @@ std::pair<bool, vk::Semaphore> wivrn::video_encoder_vulkan::present_image(vk::Im
|
||||
|
||||
cmd_buf.copyImage(
|
||||
y_cbcr,
|
||||
vk::ImageLayout::eTransferSrcOptimal,
|
||||
vk::ImageLayout::eGeneral,
|
||||
slot_item.tmp_image,
|
||||
vk::ImageLayout::eTransferDstOptimal,
|
||||
{
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user