WIP: Vulkan: Workbench #107886
|
@ -65,8 +65,8 @@ void VKTexture::copy_to(Texture *tex)
|
||||||
region.dstSubresource.mipLevel = 0;
|
region.dstSubresource.mipLevel = 0;
|
||||||
region.dstSubresource.layerCount = 1;
|
region.dstSubresource.layerCount = 1;
|
||||||
region.extent.width = w_;
|
region.extent.width = w_;
|
||||||
region.extent.height = h_;
|
region.extent.height = max_ii(h_, 1);
|
||||||
region.extent.depth = d_;
|
region.extent.depth = max_ii(d_, 1);
|
||||||
|
|
||||||
VKCommandBuffer &command_buffer = context.command_buffer_get();
|
VKCommandBuffer &command_buffer = context.command_buffer_get();
|
||||||
command_buffer.copy(*dst, *this, Span<VkImageCopy>(®ion, 1));
|
command_buffer.copy(*dst, *this, Span<VkImageCopy>(®ion, 1));
|
||||||
|
|
Loading…
Reference in New Issue