X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fvulkan%2Ftexture_backend.cpp;h=5b73749884892aad06f69589648e4bad16b663aa;hb=d05d9963e185566f03ea348999655037617e4ba9;hp=bf2692172c922295c835012ccc0637ab2d909aa8;hpb=857c2db0fb3112b750b618625649d12e13d9ae1a;p=libs%2Fgl.git diff --git a/source/backends/vulkan/texture_backend.cpp b/source/backends/vulkan/texture_backend.cpp index bf269217..5b737498 100644 --- a/source/backends/vulkan/texture_backend.cpp +++ b/source/backends/vulkan/texture_backend.cpp @@ -146,9 +146,8 @@ void VulkanTexture::generate_mipmap() change_layout(i, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, false); change_layout(i+1, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, true); }, - [this, i](VkCommandBuffer cmd_buf, VkBuffer, size_t){ + [this, i](const VulkanCommandRecorder &vkCmd, VkBuffer, size_t){ const Texture &self = *static_cast(this); - const VulkanFunctions &vk = device.get_functions(); VkImageBlit region = { }; region.srcSubresource.aspectMask = get_vulkan_aspect(get_components(self.storage_fmt)); @@ -160,7 +159,7 @@ void VulkanTexture::generate_mipmap() fill_mipmap_blit(i, ®ion); - vk.CmdBlitImage(cmd_buf, handle, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, handle, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, + vkCmd.BlitImage(handle, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, handle, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, 1, ®ion, VK_FILTER_LINEAR); }); }