diff options
author | ReinUsesLisp <[email protected]> | 2020-02-14 18:09:37 -0300 |
---|---|---|
committer | ReinUsesLisp <[email protected]> | 2020-02-14 18:09:40 -0300 |
commit | 91aa58e41072e648cd1d43d284b08c2a01af08a2 (patch) | |
tree | a8d4f0ab607c9e0868cdb4da65163318312a714d /src/video_core/rasterizer_interface.h | |
parent | f552d553bac1374c583d748dad27f8c86e86c4a0 (diff) | |
download | yuzu-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.h | 7 |
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; |