diff options
| author | Subv <subv2112@gmail.com> | 2018-04-21 19:19:33 -0500 |
|---|---|---|
| committer | Subv <subv2112@gmail.com> | 2018-04-23 11:34:50 -0500 |
| commit | 9531a2928369bcc094c28b77408811d47c46c7f2 (patch) | |
| tree | 791f30228e94a89ece5967306748d4e4d08e2020 /src/video_core/engines | |
| parent | 62937798a0d298ca463486120d27a752fa798b68 (diff) | |
GPU: Support multiple enabled vertex arrays.
The vertex arrays will be copied to the stream buffer one after the other, and the attributes will be set using the ARB_vertex_attrib_binding extension.
yuzu now thus requires OpenGL 4.3 or the ARB_vertex_attrib_binding extension.
Diffstat (limited to 'src/video_core/engines')
| -rw-r--r-- | src/video_core/engines/maxwell_3d.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h index d4fcedace..609504795 100644 --- a/src/video_core/engines/maxwell_3d.h +++ b/src/video_core/engines/maxwell_3d.h @@ -500,6 +500,11 @@ public: return static_cast<GPUVAddr>((static_cast<GPUVAddr>(start_high) << 32) | start_low); } + + bool IsEnabled() const { + return enable != 0 && StartAddress() != 0; + } + } vertex_array[NumVertexArrays]; Blend blend; |
