diff options
| author | 2021-03-26 16:46:07 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:24 -0400 | |
| commit | d9c5bd9509e82fcde72c18663989931f97ed6518 (patch) | |
| tree | d6575e66d66a8abc8ee8776c1c2536c052424787 /src/shader_recompiler/frontend/ir/microinstruction.h | |
| parent | shader: Add IR opcode for ImageFetch (diff) | |
| download | yuzu-d9c5bd9509e82fcde72c18663989931f97ed6518.tar.gz yuzu-d9c5bd9509e82fcde72c18663989931f97ed6518.tar.xz yuzu-d9c5bd9509e82fcde72c18663989931f97ed6518.zip | |
shader: Refactor PTP and other minor changes
Diffstat (limited to 'src/shader_recompiler/frontend/ir/microinstruction.h')
| -rw-r--r-- | src/shader_recompiler/frontend/ir/microinstruction.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/frontend/ir/microinstruction.h b/src/shader_recompiler/frontend/ir/microinstruction.h index 77296cfa4..6658dc674 100644 --- a/src/shader_recompiler/frontend/ir/microinstruction.h +++ b/src/shader_recompiler/frontend/ir/microinstruction.h | |||
| @@ -101,8 +101,8 @@ public: | |||
| 101 | 101 | ||
| 102 | template <typename FlagsType> | 102 | template <typename FlagsType> |
| 103 | requires(sizeof(FlagsType) <= sizeof(u32) && std::is_trivially_copyable_v<FlagsType>) | 103 | requires(sizeof(FlagsType) <= sizeof(u32) && std::is_trivially_copyable_v<FlagsType>) |
| 104 | [[nodiscard]] void SetFlags(FlagsType& new_val) noexcept { | 104 | [[nodiscard]] void SetFlags(FlagsType value) noexcept { |
| 105 | std::memcpy(&flags, &new_val, sizeof(new_val)); | 105 | std::memcpy(&flags, &value, sizeof(value)); |
| 106 | } | 106 | } |
| 107 | 107 | ||
| 108 | /// Intrusively store the host definition of this instruction. | 108 | /// Intrusively store the host definition of this instruction. |