summaryrefslogtreecommitdiffstats
path: root/src/video_core/rasterizer_interface.h
diff options
context:
space:
mode:
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;