WIP: Vulkan: Workbench #107886
|
@ -402,6 +402,7 @@ void VKFrameBuffer::render_pass_create()
|
|||
/* Ensure texture is allocated to ensure the image view. */
|
||||
VKTexture &texture = *static_cast<VKTexture *>(unwrap(attachment.tex));
|
||||
texture.ensure_allocated();
|
||||
/* TODO: use image_view for attachment.mip */
|
||||
image_views[attachment_location] = texture.vk_image_view_handle();
|
||||
|
||||
VkAttachmentDescription &attachment_description =
|
||||
|
|
|
@ -200,10 +200,6 @@ void *VKTexture::read(int mip, eGPUDataFormat format)
|
|||
void VKTexture::update_sub(
|
||||
int mip, int offset[3], int extent_[3], eGPUDataFormat format, const void *data)
|
||||
{
|
||||
if (mip != 0) {
|
||||
NOT_YET_IMPLEMENTED;
|
||||
return;
|
||||
}
|
||||
if (!is_allocated()) {
|
||||
allocate();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue