diff options
| author | 2014-07-27 17:34:11 +0200 | |
|---|---|---|
| committer | 2014-08-12 13:49:33 +0200 | |
| commit | 94aa9da562457e1fed4911d1cda770c3e42bd419 (patch) | |
| tree | ba3b698dd4032c2882ea9b4d4395c9fde1d2c498 /src/video_core/primitive_assembly.cpp | |
| parent | Pica: Add primitive assembly stage. (diff) | |
| download | yuzu-94aa9da562457e1fed4911d1cda770c3e42bd419.tar.gz yuzu-94aa9da562457e1fed4911d1cda770c3e42bd419.tar.xz yuzu-94aa9da562457e1fed4911d1cda770c3e42bd419.zip | |
Pica: Add triangle clipper.
Diffstat (limited to 'src/video_core/primitive_assembly.cpp')
| -rw-r--r-- | src/video_core/primitive_assembly.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/video_core/primitive_assembly.cpp b/src/video_core/primitive_assembly.cpp index b2196d13c..2354ffb99 100644 --- a/src/video_core/primitive_assembly.cpp +++ b/src/video_core/primitive_assembly.cpp | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | // Licensed under GPLv2 | 2 | // Licensed under GPLv2 |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include "clipper.h" | ||
| 5 | #include "pica.h" | 6 | #include "pica.h" |
| 6 | #include "primitive_assembly.h" | 7 | #include "primitive_assembly.h" |
| 7 | #include "vertex_shader.h" | 8 | #include "vertex_shader.h" |
| @@ -23,8 +24,7 @@ void SubmitVertex(OutputVertex& vtx) | |||
| 23 | } else { | 24 | } else { |
| 24 | buffer_index = 0; | 25 | buffer_index = 0; |
| 25 | 26 | ||
| 26 | // TODO | 27 | Clipper::ProcessTriangle(buffer[0], buffer[1], vtx); |
| 27 | // Clipper::ProcessTriangle(buffer[0], buffer[1], vtx); | ||
| 28 | } | 28 | } |
| 29 | break; | 29 | break; |
| 30 | 30 | ||
| @@ -32,8 +32,7 @@ void SubmitVertex(OutputVertex& vtx) | |||
| 32 | if (buffer_index == 2) { | 32 | if (buffer_index == 2) { |
| 33 | buffer_index = 0; | 33 | buffer_index = 0; |
| 34 | 34 | ||
| 35 | // TODO | 35 | Clipper::ProcessTriangle(buffer[0], buffer[1], vtx); |
| 36 | // Clipper::ProcessTriangle(buffer[0], buffer[1], vtx); | ||
| 37 | 36 | ||
| 38 | buffer[1] = vtx; | 37 | buffer[1] = vtx; |
| 39 | } else { | 38 | } else { |