Texture Cache: Address feedback.

This commit is contained in:
Fernando Sahmkow
2021-06-20 12:25:59 +02:00
parent fd98fcf7f0
commit 8f9f142956
5 changed files with 37 additions and 18 deletions

View File

@ -114,22 +114,22 @@ public:
void WriteBlockUnsafe(GPUVAddr gpu_dest_addr, const void* src_buffer, std::size_t size);
/**
* IsGranularRange checks if a gpu region can be simply read with a pointer.
* Checks if a gpu region can be simply read with a pointer.
*/
[[nodiscard]] bool IsGranularRange(GPUVAddr gpu_addr, std::size_t size) const;
/**
* IsContinousRange checks if a gpu region is mapped by a single range of cpu addresses.
* Checks if a gpu region is mapped by a single range of cpu addresses.
*/
[[nodiscard]] bool IsContinousRange(GPUVAddr gpu_addr, std::size_t size) const;
/**
* IsFullyMappedRange checks if a gpu region is mapped entirely.
* Checks if a gpu region is mapped entirely.
*/
[[nodiscard]] bool IsFullyMappedRange(GPUVAddr gpu_addr, std::size_t size) const;
/**
* GetSubmappedRange returns a vector with all the subranges of cpu addresses mapped beneath.
* Returns a vector with all the subranges of cpu addresses mapped beneath.
* if the region is continous, a single pair will be returned. If it's unmapped, an empty vector
* will be returned;
*/