diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-10-02 19:47:26 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-10-04 05:03:44 +0200 |
commit | 3e2380327a99196ac2bb18668f6f53c4248bcca1 (patch) | |
tree | f0e330bb43f9611c5319d7d51c27c5d2fb2ebc5b /src/video_core/engines/maxwell_3d.h | |
parent | Merge pull request #1422 from ReinUsesLisp/fixup-points (diff) | |
download | yuzu-3e2380327a99196ac2bb18668f6f53c4248bcca1.tar yuzu-3e2380327a99196ac2bb18668f6f53c4248bcca1.tar.gz yuzu-3e2380327a99196ac2bb18668f6f53c4248bcca1.tar.bz2 yuzu-3e2380327a99196ac2bb18668f6f53c4248bcca1.tar.lz yuzu-3e2380327a99196ac2bb18668f6f53c4248bcca1.tar.xz yuzu-3e2380327a99196ac2bb18668f6f53c4248bcca1.tar.zst yuzu-3e2380327a99196ac2bb18668f6f53c4248bcca1.zip |
Diffstat (limited to 'src/video_core/engines/maxwell_3d.h')
-rw-r--r-- | src/video_core/engines/maxwell_3d.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h index 9f5581045..4290da33f 100644 --- a/src/video_core/engines/maxwell_3d.h +++ b/src/video_core/engines/maxwell_3d.h @@ -744,6 +744,12 @@ public: return static_cast<GPUVAddr>((static_cast<GPUVAddr>(end_addr_high) << 32) | end_addr_low); } + + /// Adjust the index buffer offset so it points to the first desired index. + GPUVAddr IndexStart() const { + return StartAddress() + static_cast<size_t>(first) * + static_cast<size_t>(FormatSizeInBytes()); + } } index_array; INSERT_PADDING_WORDS(0x7); |