• Home
  • Raw
  • Download

Lines Matching refs:Bitfield

1067 struct Bitfield  struct
1071 constexpr Bitfield Then(const int bits) { return { offset + count, bits }; } in Then() argument
1072 constexpr bool operator==(const Bitfield &rhs) in operator ==() argument
1094 constexpr Bitfield Partition() const { return { IDX + 1, PB }; } in Partition()
1095 constexpr Bitfield Rotation() const { return Partition().Then(RB); } in Rotation()
1096 constexpr Bitfield IndexSelection() const { return Rotation().Then(ISB); } in IndexSelection()
1097 constexpr Bitfield Red(int idx) const in Red()
1101 constexpr Bitfield Green(int idx) const in Green()
1105 constexpr Bitfield Blue(int idx) const in Blue()
1109 constexpr Bitfield Alpha(int idx) const in Alpha()
1113 constexpr Bitfield EndpointPBit(int idx) const in EndpointPBit()
1117 constexpr Bitfield SharedPBit0() const in SharedPBit0()
1121 constexpr Bitfield SharedPBit1() const in SharedPBit1()
1125 constexpr Bitfield PrimaryIndex(int offset, int count) const in PrimaryIndex()
1129 constexpr Bitfield SecondaryIndex(int offset, int count) const in SecondaryIndex()
1149 static_assert(Modes[0].Partition() == Bitfield{ 1, 4 }, "BC7 static assertion failed");
1150 static_assert(Modes[0].Red(0) == Bitfield{ 5, 4 }, "BC7 static assertion failed");
1151 static_assert(Modes[0].Red(5) == Bitfield{ 25, 4 }, "BC7 static assertion failed");
1152 static_assert(Modes[0].Green(0) == Bitfield{ 29, 4 }, "BC7 static assertion failed");
1153 static_assert(Modes[0].Green(5) == Bitfield{ 49, 4 }, "BC7 static assertion failed");
1154 static_assert(Modes[0].Blue(0) == Bitfield{ 53, 4 }, "BC7 static assertion failed");
1155 static_assert(Modes[0].Blue(5) == Bitfield{ 73, 4 }, "BC7 static assertion failed");
1156 static_assert(Modes[0].EndpointPBit(0) == Bitfield{ 77, 1 }, "BC7 static assertion failed");
1157 static_assert(Modes[0].EndpointPBit(5) == Bitfield{ 82, 1 }, "BC7 static assertion failed");
1158 static_assert(Modes[0].PrimaryIndex(0, 2) == Bitfield{ 83, 2 }, "BC7 static asassertionsert failed"…
1159 static_assert(Modes[0].PrimaryIndex(43, 1) == Bitfield{ 126, 1 }, "BC7 static assertion failed");
1372 constexpr uint64_t Get(const Bitfield &bf) const in Get()