28class sfloat_rgba32x4 {
30 constexpr sfloat_rgba32x4() =
default;
31 constexpr sfloat_rgba32x4(sfloat_rgba32x4
const& rhs)
noexcept =
default;
32 constexpr sfloat_rgba32x4(sfloat_rgba32x4&& rhs)
noexcept =
default;
33 constexpr sfloat_rgba32x4& operator=(sfloat_rgba32x4
const& rhs)
noexcept =
default;
34 constexpr sfloat_rgba32x4& operator=(sfloat_rgba32x4&& rhs)
noexcept =
default;
35 [[nodiscard]]
constexpr friend bool operator==(sfloat_rgba32x4
const&, sfloat_rgba32x4
const&)
noexcept =
default;
39 for (
auto j = 0_uz; j != 4; ++j) {
40 for (
auto i = 0_uz; i != 4; ++i) {
41 _v[j * 4 + i] = rhs[j][i];
48 for (
auto j = 0_uz; j != 4; ++j) {
49 for (
auto i = 0_uz; i != 4; ++i) {
50 _v[j * 4 + i] = rhs[j][i];
56 constexpr sfloat_rgba32x4(matrix3
const& rhs) noexcept : sfloat_rgba32x4(
static_cast<std::array<f32x4, 4>>(rhs)) {}