22class sfloat_rgba32x4 {
24 constexpr sfloat_rgba32x4() =
default;
25 constexpr sfloat_rgba32x4(sfloat_rgba32x4
const& rhs)
noexcept =
default;
26 constexpr sfloat_rgba32x4(sfloat_rgba32x4&& rhs)
noexcept =
default;
27 constexpr sfloat_rgba32x4& operator=(sfloat_rgba32x4
const& rhs)
noexcept =
default;
28 constexpr sfloat_rgba32x4& operator=(sfloat_rgba32x4&& rhs)
noexcept =
default;
29 [[nodiscard]]
constexpr friend bool operator==(sfloat_rgba32x4
const&, sfloat_rgba32x4
const&)
noexcept =
default;
33 for (
auto j = 0_uz; j != 4; ++j) {
34 for (
auto i = 0_uz; i != 4; ++i) {
35 _v[j * 4 + i] = rhs[j][i];
42 for (
auto j = 0_uz; j != 4; ++j) {
43 for (
auto i = 0_uz; i != 4; ++i) {
44 _v[j * 4 + i] = rhs[j][i];
50 constexpr sfloat_rgba32x4(matrix3
const& rhs) noexcept : sfloat_rgba32x4(
static_cast<std::array<f32x4, 4>>(rhs)) {}