diff options
| author | 2017-07-26 00:39:43 +0300 | |
|---|---|---|
| committer | 2017-08-19 10:13:20 +0300 | |
| commit | bb63ae305279d9a73ea70133c89e92a36dc79f69 (patch) | |
| tree | bf06f895922b0230e36ab0cafc0aa4a80fc59804 | |
| parent | pica/shader/interpreter: implement SETEMIT and EMIT (diff) | |
| download | yuzu-bb63ae305279d9a73ea70133c89e92a36dc79f69.tar.gz yuzu-bb63ae305279d9a73ea70133c89e92a36dc79f69.tar.xz yuzu-bb63ae305279d9a73ea70133c89e92a36dc79f69.zip | |
correct constness
| -rw-r--r-- | src/video_core/shader/shader.cpp | 3 | ||||
| -rw-r--r-- | src/video_core/shader/shader.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/video_core/shader/shader.cpp b/src/video_core/shader/shader.cpp index b12468d3a..e9063e616 100644 --- a/src/video_core/shader/shader.cpp +++ b/src/video_core/shader/shader.cpp | |||
| @@ -21,7 +21,8 @@ namespace Pica { | |||
| 21 | 21 | ||
| 22 | namespace Shader { | 22 | namespace Shader { |
| 23 | 23 | ||
| 24 | OutputVertex OutputVertex::FromAttributeBuffer(const RasterizerRegs& regs, AttributeBuffer& input) { | 24 | OutputVertex OutputVertex::FromAttributeBuffer(const RasterizerRegs& regs, |
| 25 | const AttributeBuffer& input) { | ||
| 25 | // Setup output data | 26 | // Setup output data |
| 26 | union { | 27 | union { |
| 27 | OutputVertex ret{}; | 28 | OutputVertex ret{}; |
diff --git a/src/video_core/shader/shader.h b/src/video_core/shader/shader.h index caec96043..a3789da01 100644 --- a/src/video_core/shader/shader.h +++ b/src/video_core/shader/shader.h | |||
| @@ -50,7 +50,8 @@ struct OutputVertex { | |||
| 50 | INSERT_PADDING_WORDS(1); | 50 | INSERT_PADDING_WORDS(1); |
| 51 | Math::Vec2<float24> tc2; | 51 | Math::Vec2<float24> tc2; |
| 52 | 52 | ||
| 53 | static OutputVertex FromAttributeBuffer(const RasterizerRegs& regs, AttributeBuffer& output); | 53 | static OutputVertex FromAttributeBuffer(const RasterizerRegs& regs, |
| 54 | const AttributeBuffer& output); | ||
| 54 | }; | 55 | }; |
| 55 | #define ASSERT_POS(var, pos) \ | 56 | #define ASSERT_POS(var, pos) \ |
| 56 | static_assert(offsetof(OutputVertex, var) == pos * sizeof(float24), "Semantic at wrong " \ | 57 | static_assert(offsetof(OutputVertex, var) == pos * sizeof(float24), "Semantic at wrong " \ |