diff options
Diffstat (limited to 'src/video_core/primitive_assembly.cpp')
| -rw-r--r-- | src/video_core/primitive_assembly.cpp | 12 |
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 | ||
| 56 | template<typename VertexType> | ||
| 57 | void PrimitiveAssembler<VertexType>::Reset() { | ||
| 58 | buffer_index = 0; | ||
| 59 | strip_ready = false; | ||
| 60 | } | ||
| 61 | |||
| 62 | template<typename VertexType> | ||
| 63 | void PrimitiveAssembler<VertexType>::Reconfigure(Regs::TriangleTopology topology) { | ||
| 64 | Reset(); | ||
| 65 | this->topology = topology; | ||
| 66 | } | ||
| 67 | |||
| 56 | // explicitly instantiate use cases | 68 | // explicitly instantiate use cases |
| 57 | template | 69 | template |
| 58 | struct PrimitiveAssembler<Shader::OutputVertex>; | 70 | struct PrimitiveAssembler<Shader::OutputVertex>; |