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/shader/shader.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/shader/shader.cpp')
| -rw-r--r-- | src/video_core/shader/shader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/shader/shader.cpp b/src/video_core/shader/shader.cpp index 2c6e45ac4..f5f7ea61d 100644 --- a/src/video_core/shader/shader.cpp +++ b/src/video_core/shader/shader.cpp | |||
| @@ -26,7 +26,7 @@ OutputVertex OutputVertex::FromAttributeBuffer(const Regs& regs, AttributeBuffer | |||
| 26 | OutputVertex ret{}; | 26 | OutputVertex ret{}; |
| 27 | std::array<float24, 24> vertex_slots; | 27 | std::array<float24, 24> vertex_slots; |
| 28 | }; | 28 | }; |
| 29 | static_assert(sizeof(vertex_slots) <= sizeof(ret), "Struct and array have different sizes."); | 29 | static_assert(sizeof(vertex_slots) == sizeof(ret), "Struct and array have different sizes."); |
| 30 | 30 | ||
| 31 | unsigned int num_attributes = regs.vs_output_total; | 31 | unsigned int num_attributes = regs.vs_output_total; |
| 32 | ASSERT(num_attributes <= 7); | 32 | ASSERT(num_attributes <= 7); |