diff options
author | Lioncash <mathew1800@gmail.com> | 2021-04-12 11:17:18 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2021-04-12 11:21:53 +0200 |
commit | fddb278aa317272fe6b0d5c38317b73475a37e5d (patch) | |
tree | 2654d19b47e5e0282ecd5e06e094a04cc1f2652c /src/video_core/texture_cache/util.h | |
parent | Merge pull request #6135 from Morph1984/borderless-windowed-fullscreen (diff) | |
download | yuzu-fddb278aa317272fe6b0d5c38317b73475a37e5d.tar yuzu-fddb278aa317272fe6b0d5c38317b73475a37e5d.tar.gz yuzu-fddb278aa317272fe6b0d5c38317b73475a37e5d.tar.bz2 yuzu-fddb278aa317272fe6b0d5c38317b73475a37e5d.tar.lz yuzu-fddb278aa317272fe6b0d5c38317b73475a37e5d.tar.xz yuzu-fddb278aa317272fe6b0d5c38317b73475a37e5d.tar.zst yuzu-fddb278aa317272fe6b0d5c38317b73475a37e5d.zip |
Diffstat (limited to 'src/video_core/texture_cache/util.h')
-rw-r--r-- | src/video_core/texture_cache/util.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/texture_cache/util.h b/src/video_core/texture_cache/util.h index 4d0072867..cdc5cbc75 100644 --- a/src/video_core/texture_cache/util.h +++ b/src/video_core/texture_cache/util.h @@ -20,6 +20,8 @@ namespace VideoCommon { using Tegra::Texture::TICEntry; +using LevelArray = std::array<u32, MAX_MIP_LEVELS>; + struct OverlapResult { GPUVAddr gpu_addr; VAddr cpu_addr; @@ -36,8 +38,7 @@ struct OverlapResult { [[nodiscard]] u32 CalculateLayerSize(const ImageInfo& info) noexcept; -[[nodiscard]] std::array<u32, MAX_MIP_LEVELS> CalculateMipLevelOffsets( - const ImageInfo& info) noexcept; +[[nodiscard]] LevelArray CalculateMipLevelOffsets(const ImageInfo& info) noexcept; [[nodiscard]] std::vector<u32> CalculateSliceOffsets(const ImageInfo& info); |