summaryrefslogtreecommitdiffstats
path: root/src/video_core/rasterizer_interface.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-11-26 22:52:15 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-02-14 21:33:13 +0100
commitaae8c180cbbf91ba12f53c37e81a97d4b3cc4ccd (patch)
tree560202675a073aa8e3863b4e17874fed27db8a6d /src/video_core/rasterizer_interface.h
parentgl_rasterizer: Sort method declarations (diff)
downloadyuzu-aae8c180cbbf91ba12f53c37e81a97d4b3cc4ccd.tar
yuzu-aae8c180cbbf91ba12f53c37e81a97d4b3cc4ccd.tar.gz
yuzu-aae8c180cbbf91ba12f53c37e81a97d4b3cc4ccd.tar.bz2
yuzu-aae8c180cbbf91ba12f53c37e81a97d4b3cc4ccd.tar.lz
yuzu-aae8c180cbbf91ba12f53c37e81a97d4b3cc4ccd.tar.xz
yuzu-aae8c180cbbf91ba12f53c37e81a97d4b3cc4ccd.tar.zst
yuzu-aae8c180cbbf91ba12f53c37e81a97d4b3cc4ccd.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/rasterizer_interface.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/rasterizer_interface.h b/src/video_core/rasterizer_interface.h
index 2fc627539..a394f2d3e 100644
--- a/src/video_core/rasterizer_interface.h
+++ b/src/video_core/rasterizer_interface.h
@@ -20,6 +20,7 @@ namespace VideoCore {
enum class QueryType {
SamplesPassed,
};
+constexpr std::size_t NumQueryTypes = 1;
enum class LoadCallbackStage {
Prepare,
@@ -48,8 +49,8 @@ public:
/// Resets the counter of a query
virtual void ResetCounter(QueryType type) = 0;
- /// Returns the value of a GPU query
- virtual u64 Query(QueryType type) = 0;
+ /// Records a GPU query and caches it
+ virtual void Query(GPUVAddr gpu_addr, QueryType type) = 0;
/// Notify rasterizer that all caches should be flushed to Switch memory
virtual void FlushAll() = 0;