aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2017-07-26 00:39:43 +0300
committerwwylele <wwylele@gmail.com>2017-08-19 10:13:20 +0300
commitbb63ae305279d9a73ea70133c89e92a36dc79f69 (patch)
treebf06f895922b0230e36ab0cafc0aa4a80fc59804 /src
parent28128348f21d83c30979ef10399a8a764bb08a73 (diff)
correct constness
Diffstat (limited to 'src')
-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 b12468d3a5..e9063e6164 100644
--- a/src/video_core/shader/shader.cpp
+++ b/src/video_core/shader/shader.cpp
@@ -21,7 +21,8 @@ namespace Pica {
namespace Shader {
-OutputVertex OutputVertex::FromAttributeBuffer(const RasterizerRegs& regs, AttributeBuffer& input) {
+OutputVertex OutputVertex::FromAttributeBuffer(const RasterizerRegs& regs,
+ const AttributeBuffer& input) {
// Setup output data
union {
OutputVertex ret{};
diff --git a/src/video_core/shader/shader.h b/src/video_core/shader/shader.h
index caec960434..a3789da012 100644
--- a/src/video_core/shader/shader.h
+++ b/src/video_core/shader/shader.h
@@ -50,7 +50,8 @@ struct OutputVertex {
INSERT_PADDING_WORDS(1);
Math::Vec2<float24> tc2;
- static OutputVertex FromAttributeBuffer(const RasterizerRegs& regs, AttributeBuffer& output);
+ static OutputVertex FromAttributeBuffer(const RasterizerRegs& regs,
+ const AttributeBuffer& output);
};
#define ASSERT_POS(var, pos) \
static_assert(offsetof(OutputVertex, var) == pos * sizeof(float24), "Semantic at wrong " \