diff options
author | FernandoS27 <fsahmkow27@gmail.com> | 2018-10-12 20:21:53 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2018-10-12 20:21:53 +0200 |
commit | 97b6405a17276b7497788ef924466cc24bda9f8e (patch) | |
tree | fdf1b513a12733e4093afa987b9ba62b7b28191c /src/video_core/textures/decoders.h | |
parent | Merge pull request #1467 from ogniK5377/svcbreak-type-fix (diff) | |
download | yuzu-97b6405a17276b7497788ef924466cc24bda9f8e.tar yuzu-97b6405a17276b7497788ef924466cc24bda9f8e.tar.gz yuzu-97b6405a17276b7497788ef924466cc24bda9f8e.tar.bz2 yuzu-97b6405a17276b7497788ef924466cc24bda9f8e.tar.lz yuzu-97b6405a17276b7497788ef924466cc24bda9f8e.tar.xz yuzu-97b6405a17276b7497788ef924466cc24bda9f8e.tar.zst yuzu-97b6405a17276b7497788ef924466cc24bda9f8e.zip |
Diffstat (limited to 'src/video_core/textures/decoders.h')
-rw-r--r-- | src/video_core/textures/decoders.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/textures/decoders.h b/src/video_core/textures/decoders.h index 1f7b731be..234d250af 100644 --- a/src/video_core/textures/decoders.h +++ b/src/video_core/textures/decoders.h @@ -32,4 +32,10 @@ void CopySwizzledData(u32 width, u32 height, u32 bytes_per_pixel, u32 out_bytes_ std::vector<u8> DecodeTexture(const std::vector<u8>& texture_data, TextureFormat format, u32 width, u32 height); +/** + * This function calculates the correct size of a texture depending if it's tiled or not. + */ +std::size_t CalculateSize(bool tiled, u32 bytes_per_pixel, u32 width, u32 height, u32 depth, + u32 block_height, u32 block_depth); + } // namespace Tegra::Texture |