diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2020-06-22 10:02:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-22 10:02:13 +0200 |
commit | 406d29845709b4f9344b288c785c8f394678f896 (patch) | |
tree | f5ad8c7a199a3dc70c3531b5a48e7dd5ba8c6afe /src/video_core/renderer_vulkan/vk_rasterizer.cpp | |
parent | Merge pull request #4122 from lioncash/hide (diff) | |
parent | vk_update_descriptor: Upload descriptor sets data directly (diff) | |
download | yuzu-406d29845709b4f9344b288c785c8f394678f896.tar yuzu-406d29845709b4f9344b288c785c8f394678f896.tar.gz yuzu-406d29845709b4f9344b288c785c8f394678f896.tar.bz2 yuzu-406d29845709b4f9344b288c785c8f394678f896.tar.lz yuzu-406d29845709b4f9344b288c785c8f394678f896.tar.xz yuzu-406d29845709b4f9344b288c785c8f394678f896.tar.zst yuzu-406d29845709b4f9344b288c785c8f394678f896.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_rasterizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp index a77fa35c3..29001953c 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp +++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp @@ -1154,7 +1154,7 @@ void RasterizerVulkan::SetupTexture(const Tegra::Texture::FullTextureInfo& textu const auto sampler = sampler_cache.GetSampler(texture.tsc); update_descriptor_queue.AddSampledImage(sampler, image_view); - const auto image_layout = update_descriptor_queue.GetLastImageLayout(); + VkImageLayout* const image_layout = update_descriptor_queue.LastImageLayout(); *image_layout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; sampled_views.push_back(ImageView{std::move(view), image_layout}); } @@ -1180,7 +1180,7 @@ void RasterizerVulkan::SetupImage(const Tegra::Texture::TICEntry& tic, const Ima view->GetImageView(tic.x_source, tic.y_source, tic.z_source, tic.w_source); update_descriptor_queue.AddImage(image_view); - const auto image_layout = update_descriptor_queue.GetLastImageLayout(); + VkImageLayout* const image_layout = update_descriptor_queue.LastImageLayout(); *image_layout = VK_IMAGE_LAYOUT_GENERAL; image_views.push_back(ImageView{std::move(view), image_layout}); } |