diff options
| author | 2020-02-14 18:09:37 -0300 | |
|---|---|---|
| committer | 2020-02-14 18:09:40 -0300 | |
| commit | 91aa58e41072e648cd1d43d284b08c2a01af08a2 (patch) | |
| tree | a8d4f0ab607c9e0868cdb4da65163318312a714d /src/video_core/rasterizer_interface.h | |
| parent | Merge pull request #3401 from FernandoS27/synchronization (diff) | |
| download | yuzu-91aa58e41072e648cd1d43d284b08c2a01af08a2.tar.gz yuzu-91aa58e41072e648cd1d43d284b08c2a01af08a2.tar.xz yuzu-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 { | |||
| 29 | public: | 29 | public: |
| 30 | virtual ~RasterizerInterface() {} | 30 | virtual ~RasterizerInterface() {} |
| 31 | 31 | ||
| 32 | /// Draw the current batch of vertex arrays | 32 | /// Dispatches a draw invocation |
| 33 | virtual bool DrawBatch(bool is_indexed) = 0; | 33 | virtual void Draw(bool is_indexed, bool is_instanced) = 0; |
| 34 | |||
| 35 | /// Draw the current batch of multiple instances of vertex arrays | ||
| 36 | virtual bool DrawMultiBatch(bool is_indexed) = 0; | ||
| 37 | 34 | ||
| 38 | /// Clear the current framebuffer | 35 | /// Clear the current framebuffer |
| 39 | virtual void Clear() = 0; | 36 | virtual void Clear() = 0; |