shader_recompiler: Add buffer offset calculation when swizzle is enabled. (#834)

This commit is contained in:
squidbus 2024-09-12 12:59:52 -07:00 committed by GitHub
parent fc90f279e2
commit a49c7e9dcb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 41 additions and 3 deletions

View file

@ -194,6 +194,7 @@ public:
[[nodiscard]] Value IMulExt(const U32& a, const U32& b, bool is_signed = false);
[[nodiscard]] U32U64 IMul(const U32U64& a, const U32U64& b);
[[nodiscard]] U32 IDiv(const U32& a, const U32& b, bool is_signed = false);
[[nodiscard]] U32 IMod(const U32& a, const U32& b, bool is_signed = false);
[[nodiscard]] U32U64 INeg(const U32U64& value);
[[nodiscard]] U32 IAbs(const U32& value);
[[nodiscard]] U32U64 ShiftLeftLogical(const U32U64& base, const U32& shift);