summaryrefslogtreecommitdiff
path: root/src/video_core/rasterizer_interface.h
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2019-09-19 11:41:07 -0400
committerGravatar FernandoS272019-09-19 11:41:33 -0400
commit7761e44d186deff278e51814bdec0c25e8e1a09c (patch)
tree03e9879770a0e847bdf5bd8de624bfe9e96f8809 /src/video_core/rasterizer_interface.h
parentRasterizer: Address Feedback and conscerns. (diff)
downloadyuzu-7761e44d186deff278e51814bdec0c25e8e1a09c.tar.gz
yuzu-7761e44d186deff278e51814bdec0c25e8e1a09c.tar.xz
yuzu-7761e44d186deff278e51814bdec0c25e8e1a09c.zip
Rasterizer: Refactor and simplify DrawBatch Interface.
Diffstat (limited to 'src/video_core/rasterizer_interface.h')
-rw-r--r--src/video_core/rasterizer_interface.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/video_core/rasterizer_interface.h b/src/video_core/rasterizer_interface.h
index fe0d82255..deadd70ec 100644
--- a/src/video_core/rasterizer_interface.h
+++ b/src/video_core/rasterizer_interface.h
@@ -29,10 +29,10 @@ public:
29 virtual ~RasterizerInterface() {} 29 virtual ~RasterizerInterface() {}
30 30
31 /// Draw the current batch of vertex arrays 31 /// Draw the current batch of vertex arrays
32 virtual void DrawArrays() = 0; 32 virtual bool DrawBatch(bool is_indexed) = 0;
33 33
34 /// Draw the current batch of multiple instasnces of vertex arrays 34 /// Draw the current batch of multiple instasnces of vertex arrays
35 virtual void DrawMultiArrays() = 0; 35 virtual bool DrawMultiBatch(bool is_indexed) = 0;
36 36
37 /// Clear the current framebuffer 37 /// Clear the current framebuffer
38 virtual void Clear() = 0; 38 virtual void Clear() = 0;
@@ -72,14 +72,6 @@ public:
72 return false; 72 return false;
73 } 73 }
74 74
75 virtual bool AccelerateDrawBatch(bool is_indexed) {
76 return false;
77 }
78
79 virtual bool AccelerateDrawMultiBatch(bool is_indexed) {
80 return false;
81 }
82
83 /// Increase/decrease the number of object in pages touching the specified region 75 /// Increase/decrease the number of object in pages touching the specified region
84 virtual void UpdatePagesCachedCount(VAddr addr, u64 size, int delta) {} 76 virtual void UpdatePagesCachedCount(VAddr addr, u64 size, int delta) {}
85 77