diff options
| author | 2022-01-08 01:48:53 -0700 | |
|---|---|---|
| committer | 2022-01-08 01:49:26 -0700 | |
| commit | 42f653ab6fc8ab07ba0db4ffb4d2b0267115a588 (patch) | |
| tree | c74cc1a5b8acd9e7d919dfe5d0357b98f6e5b61d /src/shader_recompiler/frontend | |
| parent | Merge pull request #7680 from german77/accel_mapping (diff) | |
| download | yuzu-42f653ab6fc8ab07ba0db4ffb4d2b0267115a588.tar.gz yuzu-42f653ab6fc8ab07ba0db4ffb4d2b0267115a588.tar.xz yuzu-42f653ab6fc8ab07ba0db4ffb4d2b0267115a588.zip | |
logging: adapt to changes in fmt 8.1
Diffstat (limited to 'src/shader_recompiler/frontend')
| -rw-r--r-- | src/shader_recompiler/frontend/ir/patch.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/frontend/ir/patch.cpp b/src/shader_recompiler/frontend/ir/patch.cpp index 4c956a970..d8730284e 100644 --- a/src/shader_recompiler/frontend/ir/patch.cpp +++ b/src/shader_recompiler/frontend/ir/patch.cpp | |||
| @@ -13,14 +13,14 @@ bool IsGeneric(Patch patch) noexcept { | |||
| 13 | 13 | ||
| 14 | u32 GenericPatchIndex(Patch patch) { | 14 | u32 GenericPatchIndex(Patch patch) { |
| 15 | if (!IsGeneric(patch)) { | 15 | if (!IsGeneric(patch)) { |
| 16 | throw InvalidArgument("Patch {} is not generic", patch); | 16 | throw InvalidArgument("Patch {} is not generic", static_cast<u64>(patch)); |
| 17 | } | 17 | } |
| 18 | return (static_cast<u32>(patch) - static_cast<u32>(Patch::Component0)) / 4; | 18 | return (static_cast<u32>(patch) - static_cast<u32>(Patch::Component0)) / 4; |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | u32 GenericPatchElement(Patch patch) { | 21 | u32 GenericPatchElement(Patch patch) { |
| 22 | if (!IsGeneric(patch)) { | 22 | if (!IsGeneric(patch)) { |
| 23 | throw InvalidArgument("Patch {} is not generic", patch); | 23 | throw InvalidArgument("Patch {} is not generic", static_cast<u64>(patch)); |
| 24 | } | 24 | } |
| 25 | return (static_cast<u32>(patch) - static_cast<u32>(Patch::Component0)) % 4; | 25 | return (static_cast<u32>(patch) - static_cast<u32>(Patch::Component0)) % 4; |
| 26 | } | 26 | } |