summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-01-28 22:11:23 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-01-30 06:45:50 +0100
commit477d616f7df3b609afcb67d69d9570098cc00029 (patch)
tree4e4395842d44583d88abaacfb23e88073223bf5c /src/video_core/engines
parentMerge pull request #2070 from ReinUsesLisp/cubearray-view (diff)
downloadyuzu-477d616f7df3b609afcb67d69d9570098cc00029.tar
yuzu-477d616f7df3b609afcb67d69d9570098cc00029.tar.gz
yuzu-477d616f7df3b609afcb67d69d9570098cc00029.tar.bz2
yuzu-477d616f7df3b609afcb67d69d9570098cc00029.tar.lz
yuzu-477d616f7df3b609afcb67d69d9570098cc00029.tar.xz
yuzu-477d616f7df3b609afcb67d69d9570098cc00029.tar.zst
yuzu-477d616f7df3b609afcb67d69d9570098cc00029.zip
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/shader_bytecode.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h
index 9989825f8..713b01c9f 100644
--- a/src/video_core/engines/shader_bytecode.h
+++ b/src/video_core/engines/shader_bytecode.h
@@ -1248,11 +1248,19 @@ union Instruction {
union {
BitField<20, 14, u64> offset;
BitField<34, 5, u64> index;
+
+ u64 GetOffset() const {
+ return offset * 4;
+ }
} cbuf34;
union {
BitField<20, 16, s64> offset;
BitField<36, 5, u64> index;
+
+ s64 GetOffset() const {
+ return offset;
+ }
} cbuf36;
// Unsure about the size of this one.