Browse Source
Merge pull request #6724 from lioncash/nodisc-shader
shader_recompiler: Remove unnecessary [[nodiscard]] instances
pull/15/merge
Rodrigo Locatti
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
4 deletions
-
src/shader_recompiler/frontend/ir/ir_emitter.h
-
src/shader_recompiler/frontend/ir/value.h
|
|
|
@ -327,8 +327,8 @@ public: |
|
|
|
const Value& derivates, const Value& offset, |
|
|
|
const F32& lod_clamp, TextureInstInfo info); |
|
|
|
[[nodiscard]] Value ImageRead(const Value& handle, const Value& coords, TextureInstInfo info); |
|
|
|
[[nodiscard]] void ImageWrite(const Value& handle, const Value& coords, const Value& color, |
|
|
|
TextureInstInfo info); |
|
|
|
void ImageWrite(const Value& handle, const Value& coords, const Value& color, |
|
|
|
TextureInstInfo info); |
|
|
|
|
|
|
|
[[nodiscard]] Value ImageAtomicIAdd(const Value& handle, const Value& coords, |
|
|
|
const Value& value, TextureInstInfo info); |
|
|
|
|
|
|
|
@ -197,8 +197,8 @@ public: |
|
|
|
} |
|
|
|
|
|
|
|
template <typename FlagsType> |
|
|
|
requires(sizeof(FlagsType) <= sizeof(u32) && std::is_trivially_copyable_v<FlagsType>) |
|
|
|
[[nodiscard]] void SetFlags(FlagsType value) noexcept { |
|
|
|
requires(sizeof(FlagsType) <= sizeof(u32) && |
|
|
|
std::is_trivially_copyable_v<FlagsType>) void SetFlags(FlagsType value) noexcept { |
|
|
|
std::memcpy(&flags, &value, sizeof(value)); |
|
|
|
} |
|
|
|
|
|
|
|
|