aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/video_core/rasterizer_interface.h
diff options
context:
space:
mode:
authorReinUsesLisp <[email protected]>2020-02-14 18:09:37 -0300
committerReinUsesLisp <[email protected]>2020-02-14 18:09:40 -0300
commit91aa58e41072e648cd1d43d284b08c2a01af08a2 (patch)
treea8d4f0ab607c9e0868cdb4da65163318312a714d /src/video_core/rasterizer_interface.h
parentf552d553bac1374c583d748dad27f8c86e86c4a0 (diff)
downloadyuzu-mainline-91aa58e41072e648cd1d43d284b08c2a01af08a2.tar.gz
yuzu-mainline-91aa58e41072e648cd1d43d284b08c2a01af08a2.zip
maxwell_3d: Unify draw methods
Pass instanced state of a draw invocation as an argument instead of having two separate virtual methods.
Diffstat (limited to 'src/video_core/rasterizer_interface.h')
-rw-r--r--src/video_core/rasterizer_interface.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/video_core/rasterizer_interface.h b/src/video_core/rasterizer_interface.h
index c586cd6fe..a8fc66711 100644
--- a/src/video_core/rasterizer_interface.h
+++ b/src/video_core/rasterizer_interface.h
@@ -29,11 +29,8 @@ class RasterizerInterface {
public:
virtual ~RasterizerInterface() {}
- /// Draw the current batch of vertex arrays
- virtual bool DrawBatch(bool is_indexed) = 0;
-
- /// Draw the current batch of multiple instances of vertex arrays
- virtual bool DrawMultiBatch(bool is_indexed) = 0;
+ /// Dispatches a draw invocation
+ virtual void Draw(bool is_indexed, bool is_instanced) = 0;
/// Clear the current framebuffer
virtual void Clear() = 0;