summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar wwylele2017-07-26 00:39:43 +0300
committerGravatar wwylele2017-08-19 10:13:20 +0300
commitbb63ae305279d9a73ea70133c89e92a36dc79f69 (patch)
treebf06f895922b0230e36ab0cafc0aa4a80fc59804
parentpica/shader/interpreter: implement SETEMIT and EMIT (diff)
downloadyuzu-bb63ae305279d9a73ea70133c89e92a36dc79f69.tar.gz
yuzu-bb63ae305279d9a73ea70133c89e92a36dc79f69.tar.xz
yuzu-bb63ae305279d9a73ea70133c89e92a36dc79f69.zip
correct constness
-rw-r--r--src/video_core/shader/shader.cpp3
-rw-r--r--src/video_core/shader/shader.h3
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
22namespace Shader { 22namespace Shader {
23 23
24OutputVertex OutputVertex::FromAttributeBuffer(const RasterizerRegs& regs, AttributeBuffer& input) { 24OutputVertex 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 " \