diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-14 02:36:45 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-14 02:36:45 +0100 |
commit | 70a31eda62eba7f4e3a700a356dec08478efb5ef (patch) | |
tree | bc88dd9b864ab38ef8f2952cfdf70c6789503bee /src | |
parent | astc: Make IntegerEncodedValue trivially copyable (diff) | |
download | yuzu-70a31eda62eba7f4e3a700a356dec08478efb5ef.tar yuzu-70a31eda62eba7f4e3a700a356dec08478efb5ef.tar.gz yuzu-70a31eda62eba7f4e3a700a356dec08478efb5ef.tar.bz2 yuzu-70a31eda62eba7f4e3a700a356dec08478efb5ef.tar.lz yuzu-70a31eda62eba7f4e3a700a356dec08478efb5ef.tar.xz yuzu-70a31eda62eba7f4e3a700a356dec08478efb5ef.tar.zst yuzu-70a31eda62eba7f4e3a700a356dec08478efb5ef.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/textures/astc.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/video_core/textures/astc.cpp b/src/video_core/textures/astc.cpp index 02cbad1ea..f4513998c 100644 --- a/src/video_core/textures/astc.cpp +++ b/src/video_core/textures/astc.cpp @@ -162,16 +162,17 @@ enum class IntegerEncoding { JustBits, Qus32, Trit }; class IntegerEncodedValue { private: - IntegerEncoding m_Encoding; - u32 m_NumBits; - u32 m_BitValue; + IntegerEncoding m_Encoding{}; + u32 m_NumBits = 0; + u32 m_BitValue = 0; union { - u32 m_Qus32Value; + u32 m_Qus32Value = 0; u32 m_TritValue; }; public: - IntegerEncodedValue(IntegerEncoding encoding, u32 numBits) + constexpr IntegerEncodedValue() = default; + constexpr IntegerEncodedValue(IntegerEncoding encoding, u32 numBits) : m_Encoding(encoding), m_NumBits(numBits) {} IntegerEncoding GetEncoding() const { |