21 constexpr static bool is_signed = std::is_signed<T>();
24#if defined(_MSC_VER) && !defined(__clang__) && _MSC_VER >= 1944 && _MSC_VER < 1950
27 constexpr static T SizeX_workaround = SizeX;
28 constexpr static T SizeY_workaround = SizeY;
29 T x : SizeX_workaround;
30 T y : SizeY_workaround;
53 return VecT(0.0f, 0.0f);
57template<
typename T,
int SizeX,
int SizeY,
int SizeZ,
int SizeW>
61 constexpr static bool is_signed = std::is_signed<T>();
67#if defined(_MSC_VER) && !defined(__clang__) && _MSC_VER >= 1944 && _MSC_VER < 1950
70 constexpr static T SizeX_workaround = SizeX;
71 constexpr static T SizeY_workaround = SizeY;
72 constexpr static T SizeZ_workaround = SizeZ;
73 constexpr static T SizeW_workaround = SizeW;
74 T x : SizeX_workaround;
75 T y : SizeY_workaround;
76 T z : SizeZ_workaround;
77 T w : SizeW_workaround;
102 return VecT(0.0f, 0.0f, 0.0f, 0.0f);
108template<
typename T,
int CompLen,
int... CompBitCounts>
109 requires(std::is_same_v<T, int32_t> || std::is_same_v<T, uint32_t>)
112 using typename IntPacked::IntVecT;
113 using typename IntPacked::VecT;
126 operator VecT()
const
128 return VecT(IntVecT(*
this)) / IntPacked::max();
constexpr T clamp(T, U, U) RET
NormalizedIntVecBase< int32_t, 4, 10, 10, 10, 2 > int1010102_norm
NormalizedIntVecBase< uint32_t, 4, 16, 16, 16, 16 > ushort4_norm
NormalizedIntVecBase< uint32_t, 4, 8, 8, 8, 8 > uchar4_norm
NormalizedIntVecBase< uint32_t, 4, 10, 10, 10, 2 > uint1010102_norm
NormalizedIntVecBase< int32_t, 4, 8, 8, 8, 8 > char4_norm
NormalizedIntVecBase< int32_t, 2, 16, 16 > short2_norm
NormalizedIntVecBase< uint32_t, 2, 16, 16 > ushort2_norm
NormalizedIntVecBase< int32_t, 4, 16, 16, 16, 16 > short4_norm
NormalizedIntVecBase(IntVecT value)
NormalizedIntVecBase()=default
detail::NormalizedIntVec< T, CompLen, CompBitCounts... > IntPacked
NormalizedIntVecBase(VecT val)
static constexpr bool is_signed
static constexpr VecT max()
constexpr NormalizedIntVec(IntVecT value)
NormalizedIntVec()=default
static constexpr VecT min()
NormalizedIntVec()=default
constexpr NormalizedIntVec(IntVecT value)
static constexpr VecT min()
static constexpr bool is_signed
static constexpr VecT max()