diff options
| author | 2016-12-18 23:43:37 -0800 | |
|---|---|---|
| committer | 2017-01-29 21:31:38 -0800 | |
| commit | dcdffabfe69d0cecd2d8c0c1f217b884b20af643 (patch) | |
| tree | 4d2214f4a878ac16e1df941fb5c763b9869ba6cc /src/video_core/rasterizer.cpp | |
| parent | VideoCore/Shader: Clean up OutputVertex::FromAttributeBuffer (diff) | |
| download | yuzu-dcdffabfe69d0cecd2d8c0c1f217b884b20af643.tar.gz yuzu-dcdffabfe69d0cecd2d8c0c1f217b884b20af643.tar.xz yuzu-dcdffabfe69d0cecd2d8c0c1f217b884b20af643.zip | |
VideoCore: Extract swrast-specific data from OutputVertex
Diffstat (limited to 'src/video_core/rasterizer.cpp')
| -rw-r--r-- | src/video_core/rasterizer.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/video_core/rasterizer.cpp b/src/video_core/rasterizer.cpp index b9f5d4533..0674eb85e 100644 --- a/src/video_core/rasterizer.cpp +++ b/src/video_core/rasterizer.cpp | |||
| @@ -307,8 +307,8 @@ MICROPROFILE_DEFINE(GPU_Rasterization, "GPU", "Rasterization", MP_RGB(50, 50, 24 | |||
| 307 | * Helper function for ProcessTriangle with the "reversed" flag to allow for implementing | 307 | * Helper function for ProcessTriangle with the "reversed" flag to allow for implementing |
| 308 | * culling via recursion. | 308 | * culling via recursion. |
| 309 | */ | 309 | */ |
| 310 | static void ProcessTriangleInternal(const Shader::OutputVertex& v0, const Shader::OutputVertex& v1, | 310 | static void ProcessTriangleInternal(const Vertex& v0, const Vertex& v1, const Vertex& v2, |
| 311 | const Shader::OutputVertex& v2, bool reversed = false) { | 311 | bool reversed = false) { |
| 312 | const auto& regs = g_state.regs; | 312 | const auto& regs = g_state.regs; |
| 313 | MICROPROFILE_SCOPE(GPU_Rasterization); | 313 | MICROPROFILE_SCOPE(GPU_Rasterization); |
| 314 | 314 | ||
| @@ -1276,8 +1276,7 @@ static void ProcessTriangleInternal(const Shader::OutputVertex& v0, const Shader | |||
| 1276 | } | 1276 | } |
| 1277 | } | 1277 | } |
| 1278 | 1278 | ||
| 1279 | void ProcessTriangle(const Shader::OutputVertex& v0, const Shader::OutputVertex& v1, | 1279 | void ProcessTriangle(const Vertex& v0, const Vertex& v1, const Vertex& v2) { |
| 1280 | const Shader::OutputVertex& v2) { | ||
| 1281 | ProcessTriangleInternal(v0, v1, v2); | 1280 | ProcessTriangleInternal(v0, v1, v2); |
| 1282 | } | 1281 | } |
| 1283 | 1282 | ||