diff options
| author | 2021-07-26 16:35:21 -0300 | |
|---|---|---|
| committer | 2021-07-26 16:35:21 -0300 | |
| commit | c0f99558fb2e09f84cacb195d492e820d319f1f6 (patch) | |
| tree | 5fd8bce9d0165f4557d02295fd902bc218ba0e91 /src/shader_recompiler/frontend | |
| parent | Merge pull request #6726 from lioncash/hguard (diff) | |
| parent | shader_recompiler: Remove unnecessary [[nodiscard]] instances (diff) | |
| download | yuzu-c0f99558fb2e09f84cacb195d492e820d319f1f6.tar.gz yuzu-c0f99558fb2e09f84cacb195d492e820d319f1f6.tar.xz yuzu-c0f99558fb2e09f84cacb195d492e820d319f1f6.zip | |
Merge pull request #6724 from lioncash/nodisc-shader
shader_recompiler: Remove unnecessary [[nodiscard]] instances
Diffstat (limited to 'src/shader_recompiler/frontend')
| -rw-r--r-- | src/shader_recompiler/frontend/ir/ir_emitter.h | 4 | ||||
| -rw-r--r-- | src/shader_recompiler/frontend/ir/value.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/shader_recompiler/frontend/ir/ir_emitter.h b/src/shader_recompiler/frontend/ir/ir_emitter.h index 53f7b3b06..1b89ca5a0 100644 --- a/src/shader_recompiler/frontend/ir/ir_emitter.h +++ b/src/shader_recompiler/frontend/ir/ir_emitter.h | |||
| @@ -327,8 +327,8 @@ public: | |||
| 327 | const Value& derivates, const Value& offset, | 327 | const Value& derivates, const Value& offset, |
| 328 | const F32& lod_clamp, TextureInstInfo info); | 328 | const F32& lod_clamp, TextureInstInfo info); |
| 329 | [[nodiscard]] Value ImageRead(const Value& handle, const Value& coords, TextureInstInfo info); | 329 | [[nodiscard]] Value ImageRead(const Value& handle, const Value& coords, TextureInstInfo info); |
| 330 | [[nodiscard]] void ImageWrite(const Value& handle, const Value& coords, const Value& color, | 330 | void ImageWrite(const Value& handle, const Value& coords, const Value& color, |
| 331 | TextureInstInfo info); | 331 | TextureInstInfo info); |
| 332 | 332 | ||
| 333 | [[nodiscard]] Value ImageAtomicIAdd(const Value& handle, const Value& coords, | 333 | [[nodiscard]] Value ImageAtomicIAdd(const Value& handle, const Value& coords, |
| 334 | const Value& value, TextureInstInfo info); | 334 | const Value& value, TextureInstInfo info); |
diff --git a/src/shader_recompiler/frontend/ir/value.h b/src/shader_recompiler/frontend/ir/value.h index 0c6bf684d..795194d41 100644 --- a/src/shader_recompiler/frontend/ir/value.h +++ b/src/shader_recompiler/frontend/ir/value.h | |||
| @@ -197,8 +197,8 @@ public: | |||
| 197 | } | 197 | } |
| 198 | 198 | ||
| 199 | template <typename FlagsType> | 199 | template <typename FlagsType> |
| 200 | requires(sizeof(FlagsType) <= sizeof(u32) && std::is_trivially_copyable_v<FlagsType>) | 200 | requires(sizeof(FlagsType) <= sizeof(u32) && |
| 201 | [[nodiscard]] void SetFlags(FlagsType value) noexcept { | 201 | std::is_trivially_copyable_v<FlagsType>) void SetFlags(FlagsType value) noexcept { |
| 202 | std::memcpy(&flags, &value, sizeof(value)); | 202 | std::memcpy(&flags, &value, sizeof(value)); |
| 203 | } | 203 | } |
| 204 | 204 | ||