Lines Matching refs:m_bits
73 ApiType (void) : m_bits(pack(0, 0, PROFILE_LAST)) {}
74 ApiType (int major, int minor, Profile profile) : m_bits(pack(major, minor, profile)) {}
76 int getMajorVersion (void) const { return int((m_bits>>MAJOR_SHIFT) & ((1u<<MAJOR_BITS)-1u)); }
77 int getMinorVersion (void) const { return int((m_bits>>MINOR_SHIFT) & ((1u<<MINOR_BITS)-1u)); }
78 Profile getProfile (void) const { return Profile((m_bits>>PROFILE_SHIFT) & ((1u<<PROFILE_BITS)-1u)); }
80 bool operator== (ApiType other) const { return m_bits == other.m_bits; }
81 bool operator!= (ApiType other) const { return m_bits != other.m_bits; }
83 deUint32 getPacked (void) const { return m_bits; }
91 ApiType (deUint32 bits) : m_bits(bits) {}
96 deUint32 m_bits;
145 ApiType getAPI (void) const { return ApiType::fromBits(m_bits & ((1u<<TOTAL_API_BITS)-1u)); }
146 ContextFlags getFlags (void) const { return ContextFlags((m_bits>>FLAGS_SHIFT) & ((1u<<FLAGS_BITS)-1u)); }
166 m_bits = pack(m_bits, flags);
172 m_bits = pack(m_bits, flags);