diff options
author | Lioncash <mathew1800@gmail.com> | 2021-02-09 23:30:18 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2021-02-09 23:30:20 +0100 |
commit | 783dc9e112cec88033410eced44a3da81472cc11 (patch) | |
tree | a3a4150f417bcd183e2aac77b1423bb4cf8721cb /src/video_core/texture_cache/util.cpp | |
parent | Merge pull request #5339 from german77/interactive (diff) | |
download | yuzu-783dc9e112cec88033410eced44a3da81472cc11.tar yuzu-783dc9e112cec88033410eced44a3da81472cc11.tar.gz yuzu-783dc9e112cec88033410eced44a3da81472cc11.tar.bz2 yuzu-783dc9e112cec88033410eced44a3da81472cc11.tar.lz yuzu-783dc9e112cec88033410eced44a3da81472cc11.tar.xz yuzu-783dc9e112cec88033410eced44a3da81472cc11.tar.zst yuzu-783dc9e112cec88033410eced44a3da81472cc11.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/texture_cache/util.cpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/video_core/texture_cache/util.cpp b/src/video_core/texture_cache/util.cpp index bb2cdef81..a0bc1f7b6 100644 --- a/src/video_core/texture_cache/util.cpp +++ b/src/video_core/texture_cache/util.cpp @@ -169,40 +169,6 @@ template <u32 GOB_EXTENT> return Common::DivCeil(AdjustMipSize(size, level), block_size); } -[[nodiscard]] constexpr u32 LayerSize(const TICEntry& config, PixelFormat format) { - return config.Width() * config.Height() * BytesPerBlock(format); -} - -[[nodiscard]] constexpr bool HasTwoDimsPerLayer(TextureType type) { - switch (type) { - case TextureType::Texture2D: - case TextureType::Texture2DArray: - case TextureType::Texture2DNoMipmap: - case TextureType::Texture3D: - case TextureType::TextureCubeArray: - case TextureType::TextureCubemap: - return true; - case TextureType::Texture1D: - case TextureType::Texture1DArray: - case TextureType::Texture1DBuffer: - return false; - } - return false; -} - -[[nodiscard]] constexpr bool HasTwoDimsPerLayer(ImageType type) { - switch (type) { - case ImageType::e2D: - case ImageType::e3D: - case ImageType::Linear: - return true; - case ImageType::e1D: - case ImageType::Buffer: - return false; - } - UNREACHABLE_MSG("Invalid image type={}", static_cast<int>(type)); -} - [[nodiscard]] constexpr std::pair<int, int> Samples(int num_samples) { switch (num_samples) { case 1: |