yuzu-emu
/
yuzu
Archived
1
0
Fork 0

astc: Make IntegerEncodedValue constructor constexpr

This commit is contained in:
ReinUsesLisp 2020-03-13 22:36:45 -03:00
parent 5ed377b989
commit 70a31eda62
1 changed files with 6 additions and 5 deletions

View File

@ -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 {