13#include "../geometry/geometry.hpp"
14#include "../utility/utility.hpp"
15#include "../macros.hpp"
16#include <hikocpu/hikocpu.hpp>
22hi_export_module(hikogui.image.sfloat_rgba16);
24hi_export
namespace hi::inline
v1 {
42 constexpr sfloat_rgba16(f16x4
const &rhs) noexcept : v(std::bit_cast<
decltype(v)>(rhs)) {}
46 v = std::bit_cast<decltype(v)>(rhs);
50 constexpr explicit operator f16x4()
const noexcept
52 return std::bit_cast<f16x4>(v);
59 return *
this =
static_cast<f16x4
>(rhs);
66 return *
this =
static_cast<f16x4
>(rhs);
69 constexpr explicit operator color()
const noexcept
71 return color{
static_cast<f16x4
>(*this)};
78 return hash_mix(v[0], v[1], v[2], v[3]);
87 std::get<3>(r.v) = 0x0000;
92constexpr void fill(pixmap_span<sfloat_rgba16> image, f32x4 color)
noexcept
95 auto const row = image[y];
Defines the pixmap_span type.
The HikoGUI namespace.
Definition array_generic.hpp:20
constexpr void fill(pixmap_span< uint8_t > image, std::vector< bezier_curve > const &curves) noexcept
Fill a linear gray scale image by filling a curve with anti-aliasing.
Definition bezier_curve.hpp:693
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
4 x half pixel format.
Definition sfloat_rgba16.hpp:30