summaryrefslogtreecommitdiff
path: root/src/video_core/rasterizer_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/rasterizer_interface.h')
-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 {
20enum class QueryType { 20enum class QueryType {
21 SamplesPassed, 21 SamplesPassed,
22}; 22};
23constexpr std::size_t NumQueryTypes = 1;
23 24
24enum class LoadCallbackStage { 25enum class LoadCallbackStage {
25 Prepare, 26 Prepare,
@@ -48,8 +49,8 @@ public:
48 /// Resets the counter of a query 49 /// Resets the counter of a query
49 virtual void ResetCounter(QueryType type) = 0; 50 virtual void ResetCounter(QueryType type) = 0;
50 51
51 /// Returns the value of a GPU query 52 /// Records a GPU query and caches it
52 virtual u64 Query(QueryType type) = 0; 53 virtual void Query(GPUVAddr gpu_addr, QueryType type) = 0;
53 54
54 /// Notify rasterizer that all caches should be flushed to Switch memory 55 /// Notify rasterizer that all caches should be flushed to Switch memory
55 virtual void FlushAll() = 0; 56 virtual void FlushAll() = 0;