diff options
| author | 2022-12-12 22:17:33 +0800 | |
|---|---|---|
| committer | 2022-12-26 11:37:34 +0800 | |
| commit | 86d5b4e556072e86b9af3ac8a4ef6842a8d9df67 (patch) | |
| tree | 238ea02d1aba2663e5a94ae5664812290b2a6326 /src/video_core/buffer_cache | |
| parent | Merge pull request #9420 from liamwhite/aniso (diff) | |
| download | yuzu-86d5b4e556072e86b9af3ac8a4ef6842a8d9df67.tar.gz yuzu-86d5b4e556072e86b9af3ac8a4ef6842a8d9df67.tar.xz yuzu-86d5b4e556072e86b9af3ac8a4ef6842a8d9df67.zip | |
video_core: Implement vulkan QuadStrip topology
Diffstat (limited to 'src/video_core/buffer_cache')
| -rw-r--r-- | src/video_core/buffer_cache/buffer_cache.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h index 502b4d90a..158360830 100644 --- a/src/video_core/buffer_cache/buffer_cache.h +++ b/src/video_core/buffer_cache/buffer_cache.h | |||
| @@ -666,9 +666,10 @@ void BufferCache<P>::BindHostGeometryBuffers(bool is_indexed) { | |||
| 666 | BindHostIndexBuffer(); | 666 | BindHostIndexBuffer(); |
| 667 | } else if constexpr (!HAS_FULL_INDEX_AND_PRIMITIVE_SUPPORT) { | 667 | } else if constexpr (!HAS_FULL_INDEX_AND_PRIMITIVE_SUPPORT) { |
| 668 | const auto& draw_state = maxwell3d->draw_manager->GetDrawState(); | 668 | const auto& draw_state = maxwell3d->draw_manager->GetDrawState(); |
| 669 | if (draw_state.topology == Maxwell::PrimitiveTopology::Quads) { | 669 | if (draw_state.topology == Maxwell::PrimitiveTopology::Quads || |
| 670 | runtime.BindQuadArrayIndexBuffer(draw_state.vertex_buffer.first, | 670 | draw_state.topology == Maxwell::PrimitiveTopology::QuadStrip) { |
| 671 | draw_state.vertex_buffer.count); | 671 | runtime.BindQuadIndexBuffer(draw_state.topology, draw_state.vertex_buffer.first, |
| 672 | draw_state.vertex_buffer.count); | ||
| 672 | } | 673 | } |
| 673 | } | 674 | } |
| 674 | BindHostVertexBuffers(); | 675 | BindHostVertexBuffers(); |