summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/shader.h
diff options
context:
space:
mode:
authoraroulin <andy.roulin@epfl.ch>2015-09-07 07:49:57 +0200
committeraroulin <andy.roulin@epfl.ch>2015-09-07 16:50:28 +0200
commit87e3b9ffc01470a5859973208f74f16999474166 (patch)
treea98adeed41d34585ed321a09fbdb69b09269d6a0 /src/video_core/shader/shader.h
parentMerge pull request #1117 from yuriks/fix-glad-build (diff)
downloadyuzu-87e3b9ffc01470a5859973208f74f16999474166.tar
yuzu-87e3b9ffc01470a5859973208f74f16999474166.tar.gz
yuzu-87e3b9ffc01470a5859973208f74f16999474166.tar.bz2
yuzu-87e3b9ffc01470a5859973208f74f16999474166.tar.lz
yuzu-87e3b9ffc01470a5859973208f74f16999474166.tar.xz
yuzu-87e3b9ffc01470a5859973208f74f16999474166.tar.zst
yuzu-87e3b9ffc01470a5859973208f74f16999474166.zip
Diffstat (limited to 'src/video_core/shader/shader.h')
-rw-r--r--src/video_core/shader/shader.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/video_core/shader/shader.h b/src/video_core/shader/shader.h
index bac51ddd8..1c6fa592c 100644
--- a/src/video_core/shader/shader.h
+++ b/src/video_core/shader/shader.h
@@ -289,13 +289,13 @@ struct UnitState {
DebugData<Debug> debug;
- static int InputOffset(const SourceRegister& reg) {
+ static size_t InputOffset(const SourceRegister& reg) {
switch (reg.GetRegisterType()) {
case RegisterType::Input:
- return (int)offsetof(UnitState::Registers, input) + reg.GetIndex()*sizeof(Math::Vec4<float24>);
+ return offsetof(UnitState::Registers, input) + reg.GetIndex()*sizeof(Math::Vec4<float24>);
case RegisterType::Temporary:
- return (int)offsetof(UnitState::Registers, temporary) + reg.GetIndex()*sizeof(Math::Vec4<float24>);
+ return offsetof(UnitState::Registers, temporary) + reg.GetIndex()*sizeof(Math::Vec4<float24>);
default:
UNREACHABLE();
@@ -303,13 +303,13 @@ struct UnitState {
}
}
- static int OutputOffset(const DestRegister& reg) {
+ static size_t OutputOffset(const DestRegister& reg) {
switch (reg.GetRegisterType()) {
case RegisterType::Output:
- return (int)offsetof(UnitState::Registers, output) + reg.GetIndex()*sizeof(Math::Vec4<float24>);
+ return offsetof(UnitState::Registers, output) + reg.GetIndex()*sizeof(Math::Vec4<float24>);
case RegisterType::Temporary:
- return (int)offsetof(UnitState::Registers, temporary) + reg.GetIndex()*sizeof(Math::Vec4<float24>);
+ return offsetof(UnitState::Registers, temporary) + reg.GetIndex()*sizeof(Math::Vec4<float24>);
default:
UNREACHABLE();