summaryrefslogtreecommitdiff
path: root/src/video_core/texture_cache
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2019-12-22 12:29:23 -0400
committerGravatar Fernando Sahmkow2019-12-22 12:29:23 -0400
commit218ee1841772e1d74370d464078c43112ed3505a (patch)
treeeeb9d932ca202b1649774e076a6d12176b4d9c17 /src/video_core/texture_cache
parentTexture Cache: Address Feedback (diff)
downloadyuzu-218ee1841772e1d74370d464078c43112ed3505a.tar.gz
yuzu-218ee1841772e1d74370d464078c43112ed3505a.tar.xz
yuzu-218ee1841772e1d74370d464078c43112ed3505a.zip
Texture Cache: Improve documentation
Diffstat (limited to 'src/video_core/texture_cache')
-rw-r--r--src/video_core/texture_cache/surface_params.h2
-rw-r--r--src/video_core/texture_cache/texture_cache.h7
2 files changed, 5 insertions, 4 deletions
diff --git a/src/video_core/texture_cache/surface_params.h b/src/video_core/texture_cache/surface_params.h
index 84c8b2940..992b5c022 100644
--- a/src/video_core/texture_cache/surface_params.h
+++ b/src/video_core/texture_cache/surface_params.h
@@ -141,7 +141,7 @@ public:
141 /// Get this texture Tegra Block size in guest memory layout 141 /// Get this texture Tegra Block size in guest memory layout
142 u32 GetBlockSize() const; 142 u32 GetBlockSize() const;
143 143
144 /// Get X, Y sizes of a block 144 /// Get X, Y coordinates max sizes of a single block.
145 std::pair<u32, u32> GetBlockXY() const; 145 std::pair<u32, u32> GetBlockXY() const;
146 146
147 /// Get the offset in x, y, z coordinates from a memory offset 147 /// Get the offset in x, y, z coordinates from a memory offset
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h
index 9c2d108d3..f4c015635 100644
--- a/src/video_core/texture_cache/texture_cache.h
+++ b/src/video_core/texture_cache/texture_cache.h
@@ -616,8 +616,9 @@ private:
616 } 616 }
617 617
618 /** 618 /**
619 * Takes care of managing 3D textures and its slices. Does some HLE methods when possible. 619 * Takes care of managing 3D textures and its slices. Does HLE methods for reconstructing the 3D
620 * Fallsback to LLE when it isn't possible. 620 * textures within the GPU if possible. Falls back to LLE when it isn't possible to use any of
621 * the HLE methods.
621 * 622 *
622 * @param overlaps The overlapping surfaces registered in the cache. 623 * @param overlaps The overlapping surfaces registered in the cache.
623 * @param params The parameters on the new surface. 624 * @param params The parameters on the new surface.
@@ -766,7 +767,7 @@ private:
766 } 767 }
767 } 768 }
768 769
769 // Look if it's a 3D texture 770 // Check if it's a 3D texture
770 if (params.block_depth > 0) { 771 if (params.block_depth > 0) {
771 auto surface = 772 auto surface =
772 Manage3DSurfaces(overlaps, params, gpu_addr, cache_addr, preserve_contents); 773 Manage3DSurfaces(overlaps, params, gpu_addr, cache_addr, preserve_contents);