Lines Matching defs:m_bits
78 ApiType (void) : m_bits(pack(0, 0, PROFILE_LAST)) {}
79 ApiType (int major, int minor, Profile profile) : m_bits(pack(major, minor, profile)) {}
81 int getMajorVersion (void) const { return int((m_bits>>MAJOR_SHIFT) & ((1u<<MAJOR_BITS)-1u)); }
82 int getMinorVersion (void) const { return int((m_bits>>MINOR_SHIFT) & ((1u<<MINOR_BITS)-1u)); }
83 Profile getProfile (void) const { return Profile((m_bits>>PROFILE_SHIFT) & ((1u<<PROFILE_BITS)-1u)); }
85 bool operator== (ApiType other) const { return m_bits == other.m_bits; }
86 bool operator!= (ApiType other) const { return m_bits != other.m_bits; }
88 deUint32 getPacked (void) const { return m_bits; }
96 ApiType (deUint32 bits) : m_bits(bits) {}
101 deUint32 m_bits;
150 ApiType getAPI (void) const { return ApiType::fromBits(m_bits & ((1u<<TOTAL_API_BITS)-1u)); }
151 void setAPI (const ApiType& apiType) { m_bits = apiType.getPacked(); }
153 ContextFlags getFlags (void) const { return ContextFlags((m_bits>>FLAGS_SHIFT) & ((1u<<FLAGS_BITS)-1u)); }
173 m_bits = pack(m_bits, flags);
179 m_bits = pack(m_bits, flags);