[Bf-blender-cvs] [a818a0f4279] master: BlenLib: Add ushort2 to math vec types.

Jeroen Bakker noreply at git.blender.org
Mon Apr 4 14:14:44 CEST 2022


Commit: a818a0f42793a2ad27daf6e4ee6cc2210b12567d
Author: Jeroen Bakker
Date:   Mon Apr 4 14:05:24 2022 +0200
Branches: master
https://developer.blender.org/rBa818a0f42793a2ad27daf6e4ee6cc2210b12567d

BlenLib: Add ushort2 to math vec types.

Needed for the 3d texturing brush project.

===================================================================

M	source/blender/blenlib/BLI_math_vec_types.hh

===================================================================

diff --git a/source/blender/blenlib/BLI_math_vec_types.hh b/source/blender/blenlib/BLI_math_vec_types.hh
index d9524eae746..0850864d86f 100644
--- a/source/blender/blenlib/BLI_math_vec_types.hh
+++ b/source/blender/blenlib/BLI_math_vec_types.hh
@@ -571,6 +571,8 @@ using uint2 = vec_base<uint32_t, 2>;
 using uint3 = vec_base<uint32_t, 3>;
 using uint4 = vec_base<uint32_t, 4>;
 
+using ushort2 = vec_base<uint16_t, 2>;
+
 using float2 = vec_base<float, 2>;
 using float3 = vec_base<float, 3>;
 using float4 = vec_base<float, 4>;



More information about the Bf-blender-cvs mailing list