VkImageCreateInfo *image_info = static_cast<VkImageCreateInfo *>(ii);
image_info->imageType = VK_IMAGE_TYPE_1D;
image_info->extent.width = self.width;
VkImageCreateInfo *image_info = static_cast<VkImageCreateInfo *>(ii);
image_info->imageType = VK_IMAGE_TYPE_1D;
image_info->extent.width = self.width;
}
void VulkanTexture1D::sub_image(unsigned level, int x, unsigned wd, const void *data)
}
void VulkanTexture1D::sub_image(unsigned level, int x, unsigned wd, const void *data)
- void *staging = device.get_transfer_queue().prepare_transfer(this, false, data_size,
+ void *staging = tq.prepare_transfer(this, false, data_size,
- unsigned n_levels = static_cast<const Texture1D *>(this)->levels;
- change_layout(n_levels, level, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, discard);
+ change_layout(level, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, discard);
},
[this, level, x, wd](VkCommandBuffer cmd_buf, VkBuffer staging_buf, size_t src_off){
const VulkanFunctions &vk = device.get_functions();
},
[this, level, x, wd](VkCommandBuffer cmd_buf, VkBuffer staging_buf, size_t src_off){
const VulkanFunctions &vk = device.get_functions();