Convert images on the GPU on Linux for NVidia cards

This commit is contained in:
loki-47-6F-64
2021-09-14 11:58:21 +02:00
parent 1a7ed53559
commit 9982ae4675
13 changed files with 372 additions and 28 deletions
+3 -4
View File
@@ -64,8 +64,7 @@ struct argument_type<T(U)> { typedef U type; };
#define KITTY_DEFAULT_CONSTR_MOVE(x) \
x(x &&) noexcept = default; \
x &operator=(x &&) noexcept = default; \
x() = default;
x &operator=(x &&) noexcept = default;
#define KITTY_DEFAULT_CONSTR_MOVE_THROW(x) \
x(x &&) = default; \
@@ -415,9 +414,9 @@ inline std::int64_t from_view(const std::string_view &number) {
}
template<class X, class Y>
class Either : public std::variant<X, Y> {
class Either : public std::variant<std::monostate, X, Y> {
public:
using std::variant<X, Y>::variant;
using std::variant<std::monostate, X, Y>::variant;
constexpr bool has_left() const {
return std::holds_alternative<X>(*this);