From 193399676bdb9e3a0984832b8db0bf2a171c56f5 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 24 Feb 2019 16:38:58 -0800 Subject: BasicMath.h: added typedefs for uint2,3,4, int2,3,4 --- Common/interface/BasicMath.h | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) (limited to 'Common/interface') diff --git a/Common/interface/BasicMath.h b/Common/interface/BasicMath.h index 6fb52af9..17ae3711 100644 --- a/Common/interface/BasicMath.h +++ b/Common/interface/BasicMath.h @@ -1031,15 +1031,22 @@ Matrix2x2 operator* (const Matrix2x2 &m1, const Matrix2x2 &m2) } // Common HLSL-compatible vector typedefs -typedef unsigned int uint; - -typedef Vector2 float2; -typedef Vector3 float3; -typedef Vector4 float4; - -typedef Matrix4x4 float4x4; -typedef Matrix3x3 float3x3; -typedef Matrix2x2 float2x2; +using uint = uint32_t; +using uint2 = Vector2; +using uint3 = Vector3; +using uint4 = Vector4; + +using int2 = Vector2; +using int3 = Vector3; +using int4 = Vector4; + +using float2 = Vector2; +using float3 = Vector3; +using float4 = Vector4; + +using float4x4 = Matrix4x4; +using float3x3 = Matrix3x3; +using float2x2 = Matrix2x2; // Standard Matrix Intializers -- cgit v1.2.3