|
|
|
@ -201,9 +201,9 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER f16vec3 f16_rgbx_cast<uint32>(uint32 color)
|
|
|
|
|
{
|
|
|
|
|
f16vec3 result;
|
|
|
|
|
result.x = f16(static_cast<float>(color >> 0) / static_cast<float>(255));
|
|
|
|
|
result.y = f16(static_cast<float>(color >> 8) / static_cast<float>(255));
|
|
|
|
|
result.z = f16(static_cast<float>(color >> 16) / static_cast<float>(255));
|
|
|
|
|
result.x = gtc::type_precision::f16(static_cast<float>((color >> 0) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
result.y = gtc::type_precision::f16(static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
result.z = gtc::type_precision::f16(static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -211,9 +211,9 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER f16vec3 f16_xrgb_cast<uint32>(uint32 color)
|
|
|
|
|
{
|
|
|
|
|
f16vec3 result;
|
|
|
|
|
result.x = f16(static_cast<float>(color >> 8) / static_cast<float>(255));
|
|
|
|
|
result.y = f16(static_cast<float>(color >> 16) / static_cast<float>(255));
|
|
|
|
|
result.z = f16(static_cast<float>(color >> 24) / static_cast<float>(255));
|
|
|
|
|
result.x = gtc::type_precision::f16(static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
result.y = gtc::type_precision::f16(static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
result.z = gtc::type_precision::f16(static_cast<float>((color >> 24) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -221,9 +221,9 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER f16vec3 f16_bgrx_cast<uint32>(uint32 color)
|
|
|
|
|
{
|
|
|
|
|
f16vec3 result;
|
|
|
|
|
result.x = f16(static_cast<float>(color >> 16) / static_cast<float>(255));
|
|
|
|
|
result.y = f16(static_cast<float>(color >> 8) / static_cast<float>(255));
|
|
|
|
|
result.z = f16(static_cast<float>(color >> 0) / static_cast<float>(255));
|
|
|
|
|
result.x = f16(static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
result.y = f16(static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
result.z = f16(static_cast<float>((color >> 0) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -231,9 +231,9 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER f16vec3 f16_xbgr_cast<uint32>(uint32 color)
|
|
|
|
|
{
|
|
|
|
|
f16vec3 result;
|
|
|
|
|
result.x = f16(static_cast<float>(color >> 24) / static_cast<float>(255));
|
|
|
|
|
result.y = f16(static_cast<float>(color >> 16) / static_cast<float>(255));
|
|
|
|
|
result.z = f16(static_cast<float>(color >> 8) / static_cast<float>(255));
|
|
|
|
|
result.x = f16(static_cast<float>((color >> 24) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
result.y = f16(static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
result.z = f16(static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -241,10 +241,10 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER f16vec4 f16_rgba_cast<uint32>(uint32 color)
|
|
|
|
|
{
|
|
|
|
|
f16vec4 result;
|
|
|
|
|
result.x = f16(static_cast<float>(color >> 0) / static_cast<float>(255));
|
|
|
|
|
result.y = f16(static_cast<float>(color >> 8) / static_cast<float>(255));
|
|
|
|
|
result.z = f16(static_cast<float>(color >> 16) / static_cast<float>(255));
|
|
|
|
|
result.w = f16(static_cast<float>(color >> 24) / static_cast<float>(255));
|
|
|
|
|
result.x = f16(static_cast<float>((color >> 0) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
result.y = f16(static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
result.z = f16(static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
result.w = f16(static_cast<float>((color >> 24) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -252,10 +252,10 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER f16vec4 f16_argb_cast<uint32>(uint32 color)
|
|
|
|
|
{
|
|
|
|
|
f16vec4 result;
|
|
|
|
|
result.x = f16(static_cast<float>(color >> 8) / static_cast<float>(255));
|
|
|
|
|
result.y = f16(static_cast<float>(color >> 16) / static_cast<float>(255));
|
|
|
|
|
result.z = f16(static_cast<float>(color >> 24) / static_cast<float>(255));
|
|
|
|
|
result.w = f16(static_cast<float>(color >> 0) / static_cast<float>(255));
|
|
|
|
|
result.x = f16(static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
result.y = f16(static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
result.z = f16(static_cast<float>((color >> 24) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
result.w = f16(static_cast<float>((color >> 0) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -263,10 +263,10 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER f16vec4 f16_bgra_cast<uint32>(uint32 color)
|
|
|
|
|
{
|
|
|
|
|
f16vec4 result;
|
|
|
|
|
result.x = f16(static_cast<float>(color >> 16) / static_cast<float>(255));
|
|
|
|
|
result.y = f16(static_cast<float>(color >> 8) / static_cast<float>(255));
|
|
|
|
|
result.z = f16(static_cast<float>(color >> 0) / static_cast<float>(255));
|
|
|
|
|
result.w = f16(static_cast<float>(color >> 24) / static_cast<float>(255));
|
|
|
|
|
result.x = f16(static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
result.y = f16(static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
result.z = f16(static_cast<float>((color >> 0) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
result.w = f16(static_cast<float>((color >> 24) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -274,10 +274,10 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER f16vec4 f16_abgr_cast<uint32>(uint32 color)
|
|
|
|
|
{
|
|
|
|
|
f16vec4 result;
|
|
|
|
|
result.x = f16(static_cast<float>(color >> 24) / static_cast<float>(255));
|
|
|
|
|
result.y = f16(static_cast<float>(color >> 16) / static_cast<float>(255));
|
|
|
|
|
result.z = f16(static_cast<float>(color >> 8) / static_cast<float>(255));
|
|
|
|
|
result.w = f16(static_cast<float>(color >> 0) / static_cast<float>(255));
|
|
|
|
|
result.x = f16(static_cast<float>((color >> 24) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
result.y = f16(static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
result.z = f16(static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
result.w = f16(static_cast<float>((color >> 0) & 0xFF) / static_cast<float>(255));
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -291,9 +291,9 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec3<float> f32_rgbx_cast<uint32>(uint32 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec3<float> result;
|
|
|
|
|
result.x = static_cast<float>(color >> 0) / static_cast<float>(255);
|
|
|
|
|
result.y = static_cast<float>(color >> 8) / static_cast<float>(255);
|
|
|
|
|
result.z = static_cast<float>(color >> 16) / static_cast<float>(255);
|
|
|
|
|
result.x = static_cast<float>((color >> 0) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
result.y = static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
result.z = static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -301,9 +301,9 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec3<float> f32_xrgb_cast<uint32>(uint32 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec3<float> result;
|
|
|
|
|
result.x = static_cast<float>(color >> 8) / static_cast<float>(255);
|
|
|
|
|
result.y = static_cast<float>(color >> 16) / static_cast<float>(255);
|
|
|
|
|
result.z = static_cast<float>(color >> 24) / static_cast<float>(255);
|
|
|
|
|
result.x = static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
result.y = static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
result.z = static_cast<float>((color >> 24) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -311,9 +311,9 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec3<float> f32_bgrx_cast<uint32>(uint32 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec3<float> result;
|
|
|
|
|
result.x = static_cast<float>(color >> 16) / static_cast<float>(255);
|
|
|
|
|
result.y = static_cast<float>(color >> 8) / static_cast<float>(255);
|
|
|
|
|
result.z = static_cast<float>(color >> 0) / static_cast<float>(255);
|
|
|
|
|
result.x = static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
result.y = static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
result.z = static_cast<float>((color >> 0) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -321,9 +321,9 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec3<float> f32_xbgr_cast<uint32>(uint32 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec3<float> result;
|
|
|
|
|
result.x = static_cast<float>(color >> 24) / static_cast<float>(255);
|
|
|
|
|
result.y = static_cast<float>(color >> 16) / static_cast<float>(255);
|
|
|
|
|
result.z = static_cast<float>(color >> 8) / static_cast<float>(255);
|
|
|
|
|
result.x = static_cast<float>((color >> 24) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
result.y = static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
result.z = static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -331,10 +331,10 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec4<float> f32_rgba_cast<uint32>(uint32 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec4<float> result;
|
|
|
|
|
result.x = static_cast<float>(color >> 0) / static_cast<float>(255);
|
|
|
|
|
result.y = static_cast<float>(color >> 8) / static_cast<float>(255);
|
|
|
|
|
result.z = static_cast<float>(color >> 16) / static_cast<float>(255);
|
|
|
|
|
result.w = static_cast<float>(color >> 24) / static_cast<float>(255);
|
|
|
|
|
result.x = static_cast<float>((color >> 0) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
result.y = static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
result.z = static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
result.w = static_cast<float>((color >> 24) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -342,10 +342,10 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec4<float> f32_argb_cast<uint32>(uint32 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec4<float> result;
|
|
|
|
|
result.x = static_cast<float>(color >> 8) / static_cast<float>(255);
|
|
|
|
|
result.y = static_cast<float>(color >> 16) / static_cast<float>(255);
|
|
|
|
|
result.z = static_cast<float>(color >> 24) / static_cast<float>(255);
|
|
|
|
|
result.w = static_cast<float>(color >> 0) / static_cast<float>(255);
|
|
|
|
|
result.x = static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
result.y = static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
result.z = static_cast<float>((color >> 24) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
result.w = static_cast<float>((color >> 0) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -353,10 +353,10 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec4<float> f32_bgra_cast<uint32>(uint32 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec4<float> result;
|
|
|
|
|
result.x = static_cast<float>(color >> 16) / static_cast<float>(255);
|
|
|
|
|
result.y = static_cast<float>(color >> 8) / static_cast<float>(255);
|
|
|
|
|
result.z = static_cast<float>(color >> 0) / static_cast<float>(255);
|
|
|
|
|
result.w = static_cast<float>(color >> 24) / static_cast<float>(255);
|
|
|
|
|
result.x = static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
result.y = static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
result.z = static_cast<float>((color >> 0) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
result.w = static_cast<float>((color >> 24) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -364,10 +364,10 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec4<float> f32_abgr_cast<uint32>(uint32 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec4<float> result;
|
|
|
|
|
result.x = static_cast<float>(color >> 24) / static_cast<float>(255);
|
|
|
|
|
result.y = static_cast<float>(color >> 16) / static_cast<float>(255);
|
|
|
|
|
result.z = static_cast<float>(color >> 8) / static_cast<float>(255);
|
|
|
|
|
result.w = static_cast<float>(color >> 0) / static_cast<float>(255);
|
|
|
|
|
result.x = static_cast<float>((color >> 24) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
result.y = static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
result.z = static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
result.w = static_cast<float>((color >> 0) & 0xFF) / static_cast<float>(255);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -381,9 +381,9 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec3<double> f64_rgbx_cast<uint32>(uint32 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec3<double> result;
|
|
|
|
|
result.x = static_cast<double>(color >> 0) / static_cast<double>(255);
|
|
|
|
|
result.y = static_cast<double>(color >> 8) / static_cast<double>(255);
|
|
|
|
|
result.z = static_cast<double>(color >> 16) / static_cast<double>(255);
|
|
|
|
|
result.x = static_cast<double>((color >> 0) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
result.y = static_cast<double>((color >> 8) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
result.z = static_cast<double>((color >> 16) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -391,9 +391,9 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec3<double> f64_xrgb_cast<uint32>(uint32 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec3<double> result;
|
|
|
|
|
result.x = static_cast<double>(color >> 8) / static_cast<double>(255);
|
|
|
|
|
result.y = static_cast<double>(color >> 16) / static_cast<double>(255);
|
|
|
|
|
result.z = static_cast<double>(color >> 24) / static_cast<double>(255);
|
|
|
|
|
result.x = static_cast<double>((color >> 8) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
result.y = static_cast<double>((color >> 16) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
result.z = static_cast<double>((color >> 24) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -401,9 +401,9 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec3<double> f64_bgrx_cast<uint32>(uint32 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec3<double> result;
|
|
|
|
|
result.x = static_cast<double>(color >> 16) / static_cast<double>(255);
|
|
|
|
|
result.y = static_cast<double>(color >> 8) / static_cast<double>(255);
|
|
|
|
|
result.z = static_cast<double>(color >> 0) / static_cast<double>(255);
|
|
|
|
|
result.x = static_cast<double>((color >> 16) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
result.y = static_cast<double>((color >> 8) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
result.z = static_cast<double>((color >> 0) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -411,9 +411,9 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec3<double> f64_xbgr_cast<uint32>(uint32 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec3<double> result;
|
|
|
|
|
result.x = static_cast<double>(color >> 24) / static_cast<double>(255);
|
|
|
|
|
result.y = static_cast<double>(color >> 16) / static_cast<double>(255);
|
|
|
|
|
result.z = static_cast<double>(color >> 8) / static_cast<double>(255);
|
|
|
|
|
result.x = static_cast<double>((color >> 24) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
result.y = static_cast<double>((color >> 16) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
result.z = static_cast<double>((color >> 8) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -421,10 +421,10 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec4<double> f64_rgba_cast<uint32>(uint32 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec4<double> result;
|
|
|
|
|
result.x = static_cast<double>(color >> 0) / static_cast<double>(255);
|
|
|
|
|
result.y = static_cast<double>(color >> 8) / static_cast<double>(255);
|
|
|
|
|
result.z = static_cast<double>(color >> 16) / static_cast<double>(255);
|
|
|
|
|
result.w = static_cast<double>(color >> 24) / static_cast<double>(255);
|
|
|
|
|
result.x = static_cast<double>((color >> 0) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
result.y = static_cast<double>((color >> 8) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
result.z = static_cast<double>((color >> 16) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
result.w = static_cast<double>((color >> 24) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -432,10 +432,10 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec4<double> f64_argb_cast<uint32>(uint32 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec4<double> result;
|
|
|
|
|
result.x = static_cast<double>(color >> 8) / static_cast<double>(255);
|
|
|
|
|
result.y = static_cast<double>(color >> 16) / static_cast<double>(255);
|
|
|
|
|
result.z = static_cast<double>(color >> 24) / static_cast<double>(255);
|
|
|
|
|
result.w = static_cast<double>(color >> 0) / static_cast<double>(255);
|
|
|
|
|
result.x = static_cast<double>((color >> 8) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
result.y = static_cast<double>((color >> 16) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
result.z = static_cast<double>((color >> 24) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
result.w = static_cast<double>((color >> 0) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -443,10 +443,10 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec4<double> f64_bgra_cast<uint32>(uint32 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec4<double> result;
|
|
|
|
|
result.x = static_cast<double>(color >> 16) / static_cast<double>(255);
|
|
|
|
|
result.y = static_cast<double>(color >> 8) / static_cast<double>(255);
|
|
|
|
|
result.z = static_cast<double>(color >> 0) / static_cast<double>(255);
|
|
|
|
|
result.w = static_cast<double>(color >> 24) / static_cast<double>(255);
|
|
|
|
|
result.x = static_cast<double>((color >> 16) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
result.y = static_cast<double>((color >> 8) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
result.z = static_cast<double>((color >> 0) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
result.w = static_cast<double>((color >> 24) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -454,10 +454,10 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec4<double> f64_abgr_cast<uint32>(uint32 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec4<double> result;
|
|
|
|
|
result.x = static_cast<double>(color >> 24) / static_cast<double>(255);
|
|
|
|
|
result.y = static_cast<double>(color >> 16) / static_cast<double>(255);
|
|
|
|
|
result.z = static_cast<double>(color >> 8) / static_cast<double>(255);
|
|
|
|
|
result.w = static_cast<double>(color >> 0) / static_cast<double>(255);
|
|
|
|
|
result.x = static_cast<double>((color >> 24) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
result.y = static_cast<double>((color >> 16) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
result.z = static_cast<double>((color >> 8) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
result.w = static_cast<double>((color >> 0) & 0xFF) / static_cast<double>(255);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -471,9 +471,9 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec3<detail::thalf> f16_rgbx_cast<uint64>(uint64 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec3<detail::thalf> result;
|
|
|
|
|
result.x = detail::thalf(static_cast<float>(color >> 0) / static_cast<float>(65535));
|
|
|
|
|
result.y = detail::thalf(static_cast<float>(color >> 16) / static_cast<float>(65535));
|
|
|
|
|
result.z = detail::thalf(static_cast<float>(color >> 32) / static_cast<float>(65535));
|
|
|
|
|
result.x = detail::thalf(static_cast<float>((color >> 0) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
result.y = detail::thalf(static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
result.z = detail::thalf(static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -481,9 +481,9 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec3<detail::thalf> f16_xrgb_cast<uint64>(uint64 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec3<detail::thalf> result;
|
|
|
|
|
result.x = detail::thalf(static_cast<float>(color >> 16) / static_cast<float>(65535));
|
|
|
|
|
result.y = detail::thalf(static_cast<float>(color >> 32) / static_cast<float>(65535));
|
|
|
|
|
result.z = detail::thalf(static_cast<float>(color >> 48) / static_cast<float>(65535));
|
|
|
|
|
result.x = detail::thalf(static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
result.y = detail::thalf(static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
result.z = detail::thalf(static_cast<float>((color >> 48) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -491,9 +491,9 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec3<detail::thalf> f16_bgrx_cast<uint64>(uint64 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec3<detail::thalf> result;
|
|
|
|
|
result.x = detail::thalf(static_cast<float>(color >> 32) / static_cast<float>(65535));
|
|
|
|
|
result.y = detail::thalf(static_cast<float>(color >> 16) / static_cast<float>(65535));
|
|
|
|
|
result.z = detail::thalf(static_cast<float>(color >> 0) / static_cast<float>(65535));
|
|
|
|
|
result.x = detail::thalf(static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
result.y = detail::thalf(static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
result.z = detail::thalf(static_cast<float>((color >> 0) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -501,9 +501,9 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec3<detail::thalf> f16_xbgr_cast<uint64>(uint64 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec3<detail::thalf> result;
|
|
|
|
|
result.x = detail::thalf(static_cast<float>(color >> 48) / static_cast<float>(65535));
|
|
|
|
|
result.y = detail::thalf(static_cast<float>(color >> 32) / static_cast<float>(65535));
|
|
|
|
|
result.z = detail::thalf(static_cast<float>(color >> 16) / static_cast<float>(65535));
|
|
|
|
|
result.x = detail::thalf(static_cast<float>((color >> 48) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
result.y = detail::thalf(static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
result.z = detail::thalf(static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -511,10 +511,10 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec4<detail::thalf> f16_rgba_cast<uint64>(uint64 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec4<detail::thalf> result;
|
|
|
|
|
result.x = detail::thalf(static_cast<float>(color >> 0) / static_cast<float>(65535));
|
|
|
|
|
result.y = detail::thalf(static_cast<float>(color >> 16) / static_cast<float>(65535));
|
|
|
|
|
result.z = detail::thalf(static_cast<float>(color >> 32) / static_cast<float>(65535));
|
|
|
|
|
result.w = detail::thalf(static_cast<float>(color >> 48) / static_cast<float>(65535));
|
|
|
|
|
result.x = detail::thalf(static_cast<float>((color >> 0) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
result.y = detail::thalf(static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
result.z = detail::thalf(static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
result.w = detail::thalf(static_cast<float>((color >> 48) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -522,10 +522,10 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec4<detail::thalf> f16_argb_cast<uint64>(uint64 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec4<detail::thalf> result;
|
|
|
|
|
result.x = detail::thalf(static_cast<float>(color >> 16) / static_cast<float>(65535));
|
|
|
|
|
result.y = detail::thalf(static_cast<float>(color >> 32) / static_cast<float>(65535));
|
|
|
|
|
result.z = detail::thalf(static_cast<float>(color >> 48) / static_cast<float>(65535));
|
|
|
|
|
result.w = detail::thalf(static_cast<float>(color >> 0) / static_cast<float>(65535));
|
|
|
|
|
result.x = detail::thalf(static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
result.y = detail::thalf(static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
result.z = detail::thalf(static_cast<float>((color >> 48) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
result.w = detail::thalf(static_cast<float>((color >> 0) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -533,10 +533,10 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec4<detail::thalf> f16_bgra_cast<uint64>(uint64 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec4<detail::thalf> result;
|
|
|
|
|
result.x = detail::thalf(static_cast<float>(color >> 32) / static_cast<float>(65535));
|
|
|
|
|
result.y = detail::thalf(static_cast<float>(color >> 16) / static_cast<float>(65535));
|
|
|
|
|
result.z = detail::thalf(static_cast<float>(color >> 0) / static_cast<float>(65535));
|
|
|
|
|
result.w = detail::thalf(static_cast<float>(color >> 48) / static_cast<float>(65535));
|
|
|
|
|
result.x = detail::thalf(static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
result.y = detail::thalf(static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
result.z = detail::thalf(static_cast<float>((color >> 0) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
result.w = detail::thalf(static_cast<float>((color >> 48) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -544,10 +544,10 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec4<detail::thalf> f16_abgr_cast<uint64>(uint64 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec4<detail::thalf> result;
|
|
|
|
|
result.x = detail::thalf(static_cast<float>(color >> 48) / static_cast<float>(65535));
|
|
|
|
|
result.y = detail::thalf(static_cast<float>(color >> 32) / static_cast<float>(65535));
|
|
|
|
|
result.z = detail::thalf(static_cast<float>(color >> 16) / static_cast<float>(65535));
|
|
|
|
|
result.w = detail::thalf(static_cast<float>(color >> 0) / static_cast<float>(65535));
|
|
|
|
|
result.x = detail::thalf(static_cast<float>((color >> 48) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
result.y = detail::thalf(static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
result.z = detail::thalf(static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
result.w = detail::thalf(static_cast<float>((color >> 0) & 0xFFFF) / static_cast<float>(65535));
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -561,9 +561,9 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec3<float> f32_rgbx_cast<uint64>(uint64 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec3<float> result;
|
|
|
|
|
result.x = static_cast<float>(color >> 0) / static_cast<float>(65535);
|
|
|
|
|
result.y = static_cast<float>(color >> 16) / static_cast<float>(65535);
|
|
|
|
|
result.z = static_cast<float>(color >> 32) / static_cast<float>(65535);
|
|
|
|
|
result.x = static_cast<float>((color >> 0) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
result.y = static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
result.z = static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -571,9 +571,9 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec3<float> f32_xrgb_cast<uint64>(uint64 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec3<float> result;
|
|
|
|
|
result.x = static_cast<float>(color >> 16) / static_cast<float>(65535);
|
|
|
|
|
result.y = static_cast<float>(color >> 32) / static_cast<float>(65535);
|
|
|
|
|
result.z = static_cast<float>(color >> 48) / static_cast<float>(65535);
|
|
|
|
|
result.x = static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
result.y = static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
result.z = static_cast<float>((color >> 48) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -581,9 +581,9 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec3<float> f32_bgrx_cast<uint64>(uint64 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec3<float> result;
|
|
|
|
|
result.x = static_cast<float>(color >> 32) / static_cast<float>(65535);
|
|
|
|
|
result.y = static_cast<float>(color >> 16) / static_cast<float>(65535);
|
|
|
|
|
result.z = static_cast<float>(color >> 0) / static_cast<float>(65535);
|
|
|
|
|
result.x = static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
result.y = static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
result.z = static_cast<float>((color >> 0) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -591,9 +591,9 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec3<float> f32_xbgr_cast<uint64>(uint64 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec3<float> result;
|
|
|
|
|
result.x = static_cast<float>(color >> 48) / static_cast<float>(65535);
|
|
|
|
|
result.y = static_cast<float>(color >> 32) / static_cast<float>(65535);
|
|
|
|
|
result.z = static_cast<float>(color >> 16) / static_cast<float>(65535);
|
|
|
|
|
result.x = static_cast<float>((color >> 48) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
result.y = static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
result.z = static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -601,10 +601,10 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec4<float> f32_rgba_cast<uint64>(uint64 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec4<float> result;
|
|
|
|
|
result.x = static_cast<float>(color >> 0) / static_cast<float>(65535);
|
|
|
|
|
result.y = static_cast<float>(color >> 16) / static_cast<float>(65535);
|
|
|
|
|
result.z = static_cast<float>(color >> 32) / static_cast<float>(65535);
|
|
|
|
|
result.w = static_cast<float>(color >> 48) / static_cast<float>(65535);
|
|
|
|
|
result.x = static_cast<float>((color >> 0) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
result.y = static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
result.z = static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
result.w = static_cast<float>((color >> 48) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -612,10 +612,10 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec4<float> f32_argb_cast<uint64>(uint64 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec4<float> result;
|
|
|
|
|
result.x = static_cast<float>(color >> 16) / static_cast<float>(65535);
|
|
|
|
|
result.y = static_cast<float>(color >> 32) / static_cast<float>(65535);
|
|
|
|
|
result.z = static_cast<float>(color >> 48) / static_cast<float>(65535);
|
|
|
|
|
result.w = static_cast<float>(color >> 0) / static_cast<float>(65535);
|
|
|
|
|
result.x = static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
result.y = static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
result.z = static_cast<float>((color >> 48) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
result.w = static_cast<float>((color >> 0) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -623,10 +623,10 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec4<float> f32_bgra_cast<uint64>(uint64 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec4<float> result;
|
|
|
|
|
result.x = static_cast<float>(color >> 32) / static_cast<float>(65535);
|
|
|
|
|
result.y = static_cast<float>(color >> 16) / static_cast<float>(65535);
|
|
|
|
|
result.z = static_cast<float>(color >> 0) / static_cast<float>(65535);
|
|
|
|
|
result.w = static_cast<float>(color >> 48) / static_cast<float>(65535);
|
|
|
|
|
result.x = static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
result.y = static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
result.z = static_cast<float>((color >> 0) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
result.w = static_cast<float>((color >> 48) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -634,10 +634,10 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec4<float> f32_abgr_cast<uint64>(uint64 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec4<float> result;
|
|
|
|
|
result.x = static_cast<float>(color >> 48) / static_cast<float>(65535);
|
|
|
|
|
result.y = static_cast<float>(color >> 32) / static_cast<float>(65535);
|
|
|
|
|
result.z = static_cast<float>(color >> 16) / static_cast<float>(65535);
|
|
|
|
|
result.w = static_cast<float>(color >> 0) / static_cast<float>(65535);
|
|
|
|
|
result.x = static_cast<float>((color >> 48) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
result.y = static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
result.z = static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
result.w = static_cast<float>((color >> 0) & 0xFFFF) / static_cast<float>(65535);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -651,9 +651,9 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec3<double> f64_rgbx_cast<uint64>(uint64 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec3<double> result;
|
|
|
|
|
result.x = static_cast<double>(color >> 0) / static_cast<double>(65535);
|
|
|
|
|
result.y = static_cast<double>(color >> 16) / static_cast<double>(65535);
|
|
|
|
|
result.z = static_cast<double>(color >> 32) / static_cast<double>(65535);
|
|
|
|
|
result.x = static_cast<double>((color >> 0) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
result.y = static_cast<double>((color >> 16) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
result.z = static_cast<double>((color >> 32) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -661,9 +661,9 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec3<double> f64_xrgb_cast<uint64>(uint64 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec3<double> result;
|
|
|
|
|
result.x = static_cast<double>(color >> 16) / static_cast<double>(65535);
|
|
|
|
|
result.y = static_cast<double>(color >> 32) / static_cast<double>(65535);
|
|
|
|
|
result.z = static_cast<double>(color >> 48) / static_cast<double>(65535);
|
|
|
|
|
result.x = static_cast<double>((color >> 16) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
result.y = static_cast<double>((color >> 32) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
result.z = static_cast<double>((color >> 48) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -671,9 +671,9 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec3<double> f64_bgrx_cast<uint64>(uint64 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec3<double> result;
|
|
|
|
|
result.x = static_cast<double>(color >> 32) / static_cast<double>(65535);
|
|
|
|
|
result.y = static_cast<double>(color >> 16) / static_cast<double>(65535);
|
|
|
|
|
result.z = static_cast<double>(color >> 0) / static_cast<double>(65535);
|
|
|
|
|
result.x = static_cast<double>((color >> 32) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
result.y = static_cast<double>((color >> 16) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
result.z = static_cast<double>((color >> 0) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -681,9 +681,9 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec3<double> f64_xbgr_cast<uint64>(uint64 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec3<double> result;
|
|
|
|
|
result.x = static_cast<double>(color >> 48) / static_cast<double>(65535);
|
|
|
|
|
result.y = static_cast<double>(color >> 32) / static_cast<double>(65535);
|
|
|
|
|
result.z = static_cast<double>(color >> 16) / static_cast<double>(65535);
|
|
|
|
|
result.x = static_cast<double>((color >> 48) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
result.y = static_cast<double>((color >> 32) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
result.z = static_cast<double>((color >> 16) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -691,10 +691,10 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec4<double> f64_rgba_cast<uint64>(uint64 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec4<double> result;
|
|
|
|
|
result.x = static_cast<double>(color >> 0) / static_cast<double>(65535);
|
|
|
|
|
result.y = static_cast<double>(color >> 16) / static_cast<double>(65535);
|
|
|
|
|
result.z = static_cast<double>(color >> 32) / static_cast<double>(65535);
|
|
|
|
|
result.w = static_cast<double>(color >> 48) / static_cast<double>(65535);
|
|
|
|
|
result.x = static_cast<double>((color >> 0) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
result.y = static_cast<double>((color >> 16) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
result.z = static_cast<double>((color >> 32) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
result.w = static_cast<double>((color >> 48) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -702,10 +702,10 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec4<double> f64_argb_cast<uint64>(uint64 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec4<double> result;
|
|
|
|
|
result.x = static_cast<double>(color >> 16) / static_cast<double>(65535);
|
|
|
|
|
result.y = static_cast<double>(color >> 32) / static_cast<double>(65535);
|
|
|
|
|
result.z = static_cast<double>(color >> 48) / static_cast<double>(65535);
|
|
|
|
|
result.w = static_cast<double>(color >> 0) / static_cast<double>(65535);
|
|
|
|
|
result.x = static_cast<double>((color >> 16) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
result.y = static_cast<double>((color >> 32) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
result.z = static_cast<double>((color >> 48) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
result.w = static_cast<double>((color >> 0) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -713,10 +713,10 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec4<double> f64_bgra_cast<uint64>(uint64 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec4<double> result;
|
|
|
|
|
result.x = static_cast<double>(color >> 32) / static_cast<double>(65535);
|
|
|
|
|
result.y = static_cast<double>(color >> 16) / static_cast<double>(65535);
|
|
|
|
|
result.z = static_cast<double>(color >> 0) / static_cast<double>(65535);
|
|
|
|
|
result.w = static_cast<double>(color >> 48) / static_cast<double>(65535);
|
|
|
|
|
result.x = static_cast<double>((color >> 32) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
result.y = static_cast<double>((color >> 16) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
result.z = static_cast<double>((color >> 0) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
result.w = static_cast<double>((color >> 48) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -724,10 +724,10 @@ template <>
|
|
|
|
|
GLM_FUNC_QUALIFIER detail::tvec4<double> f64_abgr_cast<uint64>(uint64 color)
|
|
|
|
|
{
|
|
|
|
|
detail::tvec4<double> result;
|
|
|
|
|
result.x = static_cast<double>(color >> 48) / static_cast<double>(65535);
|
|
|
|
|
result.y = static_cast<double>(color >> 32) / static_cast<double>(65535);
|
|
|
|
|
result.z = static_cast<double>(color >> 16) / static_cast<double>(65535);
|
|
|
|
|
result.w = static_cast<double>(color >> 0) / static_cast<double>(65535);
|
|
|
|
|
result.x = static_cast<double>((color >> 48) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
result.y = static_cast<double>((color >> 32) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
result.z = static_cast<double>((color >> 16) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
result.w = static_cast<double>((color >> 0) & 0xFFFF) / static_cast<double>(65535);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|