15#if defined(GPU_OPENGL) || defined(GPU_METAL)
117 float size_x = 0.0f, size_y = 0.0f;
121 r_size =
float2(size_x, size_y);
126 float size_x = 0.0f, size_y = 0.0f;
130 r_size =
float2(size_x, size_y);
135 float size_x = 0.0f, size_y = 0.0f;
139 r_size =
float2(size_x, size_y);
144 float size_x = 0.0f, size_y = 0.0f, size_z = 0.0f;
149 r_size =
float3(size_x, size_y, size_z);
155 float size_x = 0.0f, size_y = 0.0f, size_z = 0.0f;
160 r_size =
float3(size_x, size_y, size_z);
166 float size_x = 0.0f, size_y = 0.0f, size_z = 0.0f;
171 r_size =
float3(size_x, size_y, size_z);
176 float size_x = 0.0f, size_y = 0.0f, size_z = 0.0f, size_w = 0.0f;
182 r_size =
float4(size_x, size_y, size_z, size_w);
187 float size_x = 0.0f, size_y = 0.0f, size_z = 0.0f, size_w = 0.0f;
193 r_size =
float4(size_x, size_y, size_z, size_w);
199 float size_x = 0.0f, size_y = 0.0f, size_z = 0.0f, size_w = 0.0f;
205 r_size =
float4(size_x, size_y, size_z, size_w);
VecBase< float, D > normalize(VecOp< float, D >) RET
constexpr T inversesqrt(T) RET
float3x3 normalize_and_get_size(float3x3 mat, float3 &r_size)
VecT normalize_and_get_length(VecT vector, float &out_length)
float length_squared(VecT a)
MatBase< float, 2, 2 > float2x2
MatBase< float, 4, 4 > float4x4
MatBase< float, 2, 4 > float2x4
MatBase< float, 3, 4 > float3x4
MatBase< float, 4, 2 > float4x2