diff options
author | Lioncash <mathew1800@gmail.com> | 2020-07-25 09:46:20 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-07-25 09:50:18 +0200 |
commit | 80eedff9e12d820060f1ebbb3f35c0148c8d9046 (patch) | |
tree | 5da6fbeed95b4a866ab52e6c07de8834295eb091 /src/video_core/renderer_vulkan/vk_texture_cache.cpp | |
parent | Merge pull request #4383 from ogniK5377/dark-checkbox (diff) | |
download | yuzu-80eedff9e12d820060f1ebbb3f35c0148c8d9046.tar yuzu-80eedff9e12d820060f1ebbb3f35c0148c8d9046.tar.gz yuzu-80eedff9e12d820060f1ebbb3f35c0148c8d9046.tar.bz2 yuzu-80eedff9e12d820060f1ebbb3f35c0148c8d9046.tar.lz yuzu-80eedff9e12d820060f1ebbb3f35c0148c8d9046.tar.xz yuzu-80eedff9e12d820060f1ebbb3f35c0148c8d9046.tar.zst yuzu-80eedff9e12d820060f1ebbb3f35c0148c8d9046.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_texture_cache.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.cpp b/src/video_core/renderer_vulkan/vk_texture_cache.cpp index d102e6d27..efd4bb13b 100644 --- a/src/video_core/renderer_vulkan/vk_texture_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_texture_cache.cpp @@ -138,6 +138,7 @@ VkImageCreateInfo GenerateImageCreateInfo(const VKDevice& device, const SurfaceP .flags = 0, .imageType = SurfaceTargetToImage(params.target), .format = format, + .extent = {}, .mipLevels = params.num_levels, .arrayLayers = static_cast<u32>(params.GetNumLayers()), .samples = VK_SAMPLE_COUNT_1_BIT, @@ -458,6 +459,7 @@ VkImageView CachedSurfaceView::GetAttachment() { .pNext = nullptr, .flags = 0, .image = surface.GetImageHandle(), + .viewType = VK_IMAGE_VIEW_TYPE_1D, .format = surface.GetImage().GetFormat(), .components = { |