diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2021-01-04 06:22:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-04 06:22:02 +0100 |
commit | 4801f4250d7b3eab0acd22c022a547af5860a6da (patch) | |
tree | 0ca01c277a2c0a91ff0f439ab6a0d6e1bc482357 /src/video_core/renderer_vulkan/vk_texture_cache.cpp | |
parent | Merge pull request #5285 from lioncash/error-str (diff) | |
parent | renderer_vulkan: Rename VKDevice to Device (diff) | |
download | yuzu-4801f4250d7b3eab0acd22c022a547af5860a6da.tar yuzu-4801f4250d7b3eab0acd22c022a547af5860a6da.tar.gz yuzu-4801f4250d7b3eab0acd22c022a547af5860a6da.tar.bz2 yuzu-4801f4250d7b3eab0acd22c022a547af5860a6da.tar.lz yuzu-4801f4250d7b3eab0acd22c022a547af5860a6da.tar.xz yuzu-4801f4250d7b3eab0acd22c022a547af5860a6da.tar.zst yuzu-4801f4250d7b3eab0acd22c022a547af5860a6da.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_texture_cache.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.cpp b/src/video_core/renderer_vulkan/vk_texture_cache.cpp index e04dd23ef..cf8983f70 100644 --- a/src/video_core/renderer_vulkan/vk_texture_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_texture_cache.cpp @@ -93,7 +93,7 @@ constexpr VkBorderColor ConvertBorderColor(const std::array<float, 4>& color) { } } -[[nodiscard]] VkImageCreateInfo MakeImageCreateInfo(const VKDevice& device, const ImageInfo& info) { +[[nodiscard]] VkImageCreateInfo MakeImageCreateInfo(const Device& device, const ImageInfo& info) { const auto format_info = MaxwellToVK::SurfaceFormat(device, FormatType::Optimal, info.format); VkImageCreateFlags flags = VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT; if (info.type == ImageType::e2D && info.resources.layers >= 6 && @@ -146,14 +146,14 @@ constexpr VkBorderColor ConvertBorderColor(const std::array<float, 4>& color) { }; } -[[nodiscard]] vk::Image MakeImage(const VKDevice& device, const ImageInfo& info) { +[[nodiscard]] vk::Image MakeImage(const Device& device, const ImageInfo& info) { if (info.type == ImageType::Buffer) { return vk::Image{}; } return device.GetLogical().CreateImage(MakeImageCreateInfo(device, info)); } -[[nodiscard]] vk::Buffer MakeBuffer(const VKDevice& device, const ImageInfo& info) { +[[nodiscard]] vk::Buffer MakeBuffer(const Device& device, const ImageInfo& info) { if (info.type != ImageType::Buffer) { return vk::Buffer{}; } @@ -205,7 +205,7 @@ constexpr VkBorderColor ConvertBorderColor(const std::array<float, 4>& color) { } } -[[nodiscard]] VkAttachmentDescription AttachmentDescription(const VKDevice& device, +[[nodiscard]] VkAttachmentDescription AttachmentDescription(const Device& device, const ImageView* image_view) { const auto pixel_format = image_view->format; return VkAttachmentDescription{ |