Start configurating GPU

This commit is contained in:
Jaby
2022-10-02 17:32:23 +02:00
parent e5943cb3d2
commit 63df4e8ad8
7 changed files with 58 additions and 18 deletions

View File

@@ -153,17 +153,20 @@ public:
}
// For easier constructing
constexpr __always_inline ComplexBitMap<T>& set(const BitRange<T>& range, T value) {
template<typename S>
constexpr __always_inline ComplexBitMap<T>& set(const BitRange<S>& range, T value) {
this->set_value(value, range);
return *this;
}
constexpr __always_inline ComplexBitMap<T>& set(const BitRangeValue<T>& value) {
template<typename S>
constexpr __always_inline ComplexBitMap<T>& set(const BitRangeValue<S>& value) {
this->set_value(value.value, {value.begin, value.length});
return *this;
}
constexpr __always_inline ComplexBitMap<T>& set(const Bit<T>& bit) {
template<typename S>
constexpr __always_inline ComplexBitMap<T>& set(const Bit<S>& bit) {
this->set_bit(bit.value);
return *this;
}