change_layout(i+1, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, true);
},
[this, i](VkCommandBuffer cmd_buf, VkBuffer, size_t){
+ const Texture &self = *static_cast<const Texture *>(this);
const VulkanFunctions &vk = device.get_functions();
VkImageBlit region = { };
- region.srcSubresource.aspectMask = get_vulkan_aspect(get_components(static_cast<const Texture *>(this)->storage_fmt));
+ region.srcSubresource.aspectMask = get_vulkan_aspect(get_components(self.storage_fmt));
region.srcSubresource.mipLevel = i;
region.srcSubresource.baseArrayLayer = 0;
region.srcSubresource.layerCount = 1;