bool discard = (x==0 && wd==level_size);
size_t data_size = wd*get_pixel_size(storage_fmt);
- void *staging = device.get_transfer_queue().prepare_transfer(data_size,
+ void *staging = device.get_transfer_queue().prepare_transfer(this, false, data_size,
[this, level, discard](){
unsigned n_levels = static_cast<const Texture1D *>(this)->levels;
change_layout(n_levels, level, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, discard);