summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/shader_header.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-26 06:16:25 +0200
committerGitHub <noreply@github.com>2018-10-26 06:16:25 +0200
commitd278f25bda79a2d2ed560a68f3983881c1a1e501 (patch)
tree1a24fe68cd4d72364eb6f0b6b6f5b420597a0f55 /src/video_core/engines/shader_header.h
parentMerge pull request #1430 from DarkLordZach/remove-promote-dir (diff)
parentImplemented LD_L and ST_L (diff)
downloadyuzu-d278f25bda79a2d2ed560a68f3983881c1a1e501.tar
yuzu-d278f25bda79a2d2ed560a68f3983881c1a1e501.tar.gz
yuzu-d278f25bda79a2d2ed560a68f3983881c1a1e501.tar.bz2
yuzu-d278f25bda79a2d2ed560a68f3983881c1a1e501.tar.lz
yuzu-d278f25bda79a2d2ed560a68f3983881c1a1e501.tar.xz
yuzu-d278f25bda79a2d2ed560a68f3983881c1a1e501.tar.zst
yuzu-d278f25bda79a2d2ed560a68f3983881c1a1e501.zip
Diffstat (limited to 'src/video_core/engines/shader_header.h')
-rw-r--r--src/video_core/engines/shader_header.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/engines/shader_header.h b/src/video_core/engines/shader_header.h
index a885ee3cf..a0e015c4b 100644
--- a/src/video_core/engines/shader_header.h
+++ b/src/video_core/engines/shader_header.h
@@ -96,6 +96,11 @@ struct Header {
}
} ps;
};
+
+ u64 GetLocalMemorySize() {
+ return (common1.shader_local_memory_low_size |
+ (common2.shader_local_memory_high_size << 24));
+ }
};
static_assert(sizeof(Header) == 0x50, "Incorrect structure size");