11#include "../SIMD/SIMD.hpp"
12#include "../geometry/geometry.hpp"
13#include "../macros.hpp"
19hi_export_module(hikogui.image.sfloat_rgb32);
38 sfloat_rgb32(f32x4
const &rhs) noexcept : v{rhs.r(), rhs.g(), rhs.b()} {}
42 v = {rhs.r(), rhs.g(), rhs.b()};
46 operator f32x4()
const noexcept
48 return f32x4{std::get<0>(v), std::get<1>(v), std::get<2>(v), 0.0f};
55 return *
this =
static_cast<f32x4
>(rhs);
58 operator point3()
const noexcept
60 return point3{f32x4{*
this}};
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:378
A high-level geometric point Part of the high-level vec, point, mat and color types.
Definition point3.hpp:29
3 x float32 pixel format.
Definition sfloat_rgb32.hpp:27