TransferQueue &tq = device.get_transfer_queue();
for(unsigned i=0; i+1<n_levels; ++i)
{
- tq.prepare_transfer(this, true, 0,
+ tq.prepare_transfer(this, true,
[this, i](){
change_layout(i, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, false);
change_layout(i+1, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, true);