5#include "testing/testing.h"
11TEST(normalized_int, roundtrip)
14 const float4 a(-1.0f, 1.0f / 127.0f, 64.0f / 127.0f, 1.0f);
18 const float4 a(0.0f, 1.0f / 255.0f, 128.0f / 255.0f, 1.0f);
22 const float4 a(-1.0f, 1.0f / 32767.0f, 128.0f / 32767.0f, 1.0f);
26 const float2 a(-1.0f, 1.0f / 32767.0f);
30 const float4 a(0.0f, 1.0f / 65535.0f, 64.0f / 65535.0f, 1.0f);
34 const float4 a(-1.0f, 1.0f / 511.0f, 128.0f / 511.0f, 1.0f);
38 const float4 a(0.0f, 1.0f / 1023.0f, 64.0f / 1023.0f, 1.0f);
TEST(any_virtual, DefaultConstructor)
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
VecBase< float, 4 > float4
VecBase< float, 2 > float2
NormalizedIntVecBase< uint32_t, 4, 10, 10, 10, 2 > uint1010102_norm
NormalizedIntVecBase< int32_t, 4, 8, 8, 8, 8 > char4_norm
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
NormalizedIntVecBase< int32_t, 2, 16, 16 > short2_norm
NormalizedIntVecBase< int32_t, 4, 16, 16, 16, 16 > short4_norm