aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/shader_environment.h
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-05-04 14:44:02 -0400
committerGitHub <noreply@github.com>2023-05-04 14:44:02 -0400
commit60d54d911efaec19745e0666c550b77ace8f82ca (patch)
tree420e4538b3ceae940d079b1c758354725ea11d51 /src/video_core/shader_environment.h
parente2b81ae5fe92b0cfd8adb9b4ebc5b4fbe2e9807c (diff)
parentf902cc2a2b5875eb20a403390ed849af68e094f0 (diff)
Merge pull request #10145 from Kelebek1/code_size
Fix shader code resize to use word size rather than byte size
Diffstat (limited to 'src/video_core/shader_environment.h')
-rw-r--r--src/video_core/shader_environment.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video_core/shader_environment.h b/src/video_core/shader_environment.h
index d75987a52..a0f61cbda 100644
--- a/src/video_core/shader_environment.h
+++ b/src/video_core/shader_environment.h
@@ -48,9 +48,11 @@ public:
void SetCachedSize(size_t size_bytes);
- [[nodiscard]] size_t CachedSize() const noexcept;
+ [[nodiscard]] size_t CachedSizeWords() const noexcept;
- [[nodiscard]] size_t ReadSize() const noexcept;
+ [[nodiscard]] size_t CachedSizeBytes() const noexcept;
+
+ [[nodiscard]] size_t ReadSizeBytes() const noexcept;
[[nodiscard]] bool CanBeSerialized() const noexcept;