diff options
| author | 2018-04-17 22:10:53 -0400 | |
|---|---|---|
| committer | 2018-04-17 22:10:53 -0400 | |
| commit | 71b4a3b9f6894536d1a64265d5eb52a15be2094d (patch) | |
| tree | 53297c2c2659146a7cef8d91ab6b4bf169ec8654 /src/common/bit_field.h | |
| parent | Merge pull request #345 from bunnei/blending (diff) | |
| parent | shader_bytecode: Make ctor's constexpr and explicit. (diff) | |
| download | yuzu-71b4a3b9f6894536d1a64265d5eb52a15be2094d.tar.gz yuzu-71b4a3b9f6894536d1a64265d5eb52a15be2094d.tar.xz yuzu-71b4a3b9f6894536d1a64265d5eb52a15be2094d.zip | |
Merge pull request #344 from bunnei/shader-decompiler-p2
Shader decompiler changes part 2
Diffstat (limited to 'src/common/bit_field.h')
| -rw-r--r-- | src/common/bit_field.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/common/bit_field.h b/src/common/bit_field.h index 5638bdbba..65e357dec 100644 --- a/src/common/bit_field.h +++ b/src/common/bit_field.h | |||
| @@ -192,11 +192,6 @@ private: | |||
| 192 | static_assert(position < 8 * sizeof(T), "Invalid position"); | 192 | static_assert(position < 8 * sizeof(T), "Invalid position"); |
| 193 | static_assert(bits <= 8 * sizeof(T), "Invalid number of bits"); | 193 | static_assert(bits <= 8 * sizeof(T), "Invalid number of bits"); |
| 194 | static_assert(bits > 0, "Invalid number of bits"); | 194 | static_assert(bits > 0, "Invalid number of bits"); |
| 195 | static_assert(std::is_pod<T>::value, "Invalid base type"); | 195 | static_assert(std::is_trivially_copyable_v<T>, "T must be trivially copyable in a BitField"); |
| 196 | }; | 196 | }; |
| 197 | #pragma pack() | 197 | #pragma pack() |
| 198 | |||
| 199 | #if (__GNUC__ >= 5) || defined(__clang__) || defined(_MSC_VER) | ||
| 200 | static_assert(std::is_trivially_copyable<BitField<0, 1, unsigned>>::value, | ||
| 201 | "BitField must be trivially copyable"); | ||
| 202 | #endif | ||