diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2022-11-26 15:35:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-26 15:35:45 +0100 |
commit | 3e53d8138c6068308ec8e31f1ae43aefc541840c (patch) | |
tree | 24f2b752ecdbf2b4c5b63e97d4356685363440c6 /src/video_core/engines/maxwell_3d.h | |
parent | Merge pull request #9307 from Morph1984/not-used-correctly (diff) | |
parent | video_core: Optimize maxwell drawing trigger mechanism (diff) | |
download | yuzu-3e53d8138c6068308ec8e31f1ae43aefc541840c.tar yuzu-3e53d8138c6068308ec8e31f1ae43aefc541840c.tar.gz yuzu-3e53d8138c6068308ec8e31f1ae43aefc541840c.tar.bz2 yuzu-3e53d8138c6068308ec8e31f1ae43aefc541840c.tar.lz yuzu-3e53d8138c6068308ec8e31f1ae43aefc541840c.tar.xz yuzu-3e53d8138c6068308ec8e31f1ae43aefc541840c.tar.zst yuzu-3e53d8138c6068308ec8e31f1ae43aefc541840c.zip |
Diffstat (limited to 'src/video_core/engines/maxwell_3d.h')
-rw-r--r-- | src/video_core/engines/maxwell_3d.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h index c3099f9a6..84c497ebd 100644 --- a/src/video_core/engines/maxwell_3d.h +++ b/src/video_core/engines/maxwell_3d.h @@ -3148,10 +3148,12 @@ private: /// Handles use of topology overrides (e.g., to avoid using a topology assigned from a macro) void ProcessTopologyOverride(); - void ProcessDraw(u32 instance_count = 1); - + /// Handles deferred draw(e.g., instance draw). void ProcessDeferredDraw(); + /// Handles a draw. + void ProcessDraw(u32 instance_count = 1); + /// Returns a query's value or an empty object if the value will be deferred through a cache. std::optional<u64> GetQueryResult(); @@ -3178,6 +3180,8 @@ private: std::array<bool, Regs::NUM_REGS> draw_command{}; std::vector<u32> deferred_draw_method; + enum class DrawMode : u32 { General = 0, Instance, InlineIndex }; + DrawMode draw_mode{DrawMode::General}; }; #define ASSERT_REG_POSITION(field_name, position) \ |