summaryrefslogtreecommitdiff
path: root/src/video_core/primitive_assembly.cpp
diff options
context:
space:
mode:
authorGravatar Dwayne Slater2016-03-02 22:16:38 -0500
committerGravatar Dwayne Slater2016-03-02 22:16:38 -0500
commit6b775034dd8343c06369b64bf073d6a70f35f510 (patch)
treef2a9099637bcb218ff0cc789f98151689f65c903 /src/video_core/primitive_assembly.cpp
parentMerge pull request #1434 from Kloen/legend (diff)
downloadyuzu-6b775034dd8343c06369b64bf073d6a70f35f510.tar.gz
yuzu-6b775034dd8343c06369b64bf073d6a70f35f510.tar.xz
yuzu-6b775034dd8343c06369b64bf073d6a70f35f510.zip
Add immediate mode vertex submission
Diffstat (limited to 'src/video_core/primitive_assembly.cpp')
-rw-r--r--src/video_core/primitive_assembly.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/video_core/primitive_assembly.cpp b/src/video_core/primitive_assembly.cpp
index d5a0a96a4..0061690f1 100644
--- a/src/video_core/primitive_assembly.cpp
+++ b/src/video_core/primitive_assembly.cpp
@@ -53,6 +53,18 @@ void PrimitiveAssembler<VertexType>::SubmitVertex(VertexType& vtx, TriangleHandl
53 } 53 }
54} 54}
55 55
56template<typename VertexType>
57void PrimitiveAssembler<VertexType>::Reset() {
58 buffer_index = 0;
59 strip_ready = false;
60}
61
62template<typename VertexType>
63void PrimitiveAssembler<VertexType>::Reconfigure(Regs::TriangleTopology topology) {
64 Reset();
65 this->topology = topology;
66}
67
56// explicitly instantiate use cases 68// explicitly instantiate use cases
57template 69template
58struct PrimitiveAssembler<Shader::OutputVertex>; 70struct PrimitiveAssembler<Shader::OutputVertex>;