maxwell_3d: Unify draw methods

Pass instanced state of a draw invocation as an argument instead of
having two separate virtual methods.
This commit is contained in:
ReinUsesLisp 2020-02-14 18:09:37 -03:00
parent f552d553ba
commit 91aa58e410
6 changed files with 6 additions and 36 deletions

View file

@ -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;