mirror of
https://github.com/g-truc/glm.git
synced 2024-11-29 11:24:35 +00:00
Clean up integer precision
This commit is contained in:
parent
79d78bbdde
commit
684817db46
16
glm/ext.hpp
16
glm/ext.hpp
@ -92,24 +92,24 @@
|
|||||||
#include "./ext/vector_float4_precision.hpp"
|
#include "./ext/vector_float4_precision.hpp"
|
||||||
|
|
||||||
#include "./ext/vector_int1.hpp"
|
#include "./ext/vector_int1.hpp"
|
||||||
#include "./ext/vector_int1_precision.hpp"
|
#include "./ext/vector_int1_sized.hpp"
|
||||||
#include "./ext/vector_int2.hpp"
|
#include "./ext/vector_int2.hpp"
|
||||||
#include "./ext/vector_int2_precision.hpp"
|
#include "./ext/vector_int2_sized.hpp"
|
||||||
#include "./ext/vector_int3.hpp"
|
#include "./ext/vector_int3.hpp"
|
||||||
#include "./ext/vector_int3_precision.hpp"
|
#include "./ext/vector_int3_sized.hpp"
|
||||||
#include "./ext/vector_int4.hpp"
|
#include "./ext/vector_int4.hpp"
|
||||||
#include "./ext/vector_int4_precision.hpp"
|
#include "./ext/vector_int4_sized.hpp"
|
||||||
|
|
||||||
#include "./ext/vector_relational.hpp"
|
#include "./ext/vector_relational.hpp"
|
||||||
|
|
||||||
#include "./ext/vector_uint1.hpp"
|
#include "./ext/vector_uint1.hpp"
|
||||||
#include "./ext/vector_uint1_precision.hpp"
|
#include "./ext/vector_uint1_sized.hpp"
|
||||||
#include "./ext/vector_uint2.hpp"
|
#include "./ext/vector_uint2.hpp"
|
||||||
#include "./ext/vector_uint2_precision.hpp"
|
#include "./ext/vector_uint2_sized.hpp"
|
||||||
#include "./ext/vector_uint3.hpp"
|
#include "./ext/vector_uint3.hpp"
|
||||||
#include "./ext/vector_uint3_precision.hpp"
|
#include "./ext/vector_uint3_sized.hpp"
|
||||||
#include "./ext/vector_uint4.hpp"
|
#include "./ext/vector_uint4.hpp"
|
||||||
#include "./ext/vector_uint4_precision.hpp"
|
#include "./ext/vector_uint4_sized.hpp"
|
||||||
|
|
||||||
#include "./gtc/bitfield.hpp"
|
#include "./gtc/bitfield.hpp"
|
||||||
#include "./gtc/color_space.hpp"
|
#include "./gtc/color_space.hpp"
|
||||||
|
64
glm/fwd.hpp
64
glm/fwd.hpp
@ -199,25 +199,25 @@ namespace glm
|
|||||||
|
|
||||||
// Vector int
|
// Vector int
|
||||||
|
|
||||||
typedef vec<1, i32, lowp> lowp_ivec1;
|
typedef vec<1, int, lowp> lowp_ivec1;
|
||||||
typedef vec<2, i32, lowp> lowp_ivec2;
|
typedef vec<2, int, lowp> lowp_ivec2;
|
||||||
typedef vec<3, i32, lowp> lowp_ivec3;
|
typedef vec<3, int, lowp> lowp_ivec3;
|
||||||
typedef vec<4, i32, lowp> lowp_ivec4;
|
typedef vec<4, int, lowp> lowp_ivec4;
|
||||||
|
|
||||||
typedef vec<1, i32, mediump> mediump_ivec1;
|
typedef vec<1, int, mediump> mediump_ivec1;
|
||||||
typedef vec<2, i32, mediump> mediump_ivec2;
|
typedef vec<2, int, mediump> mediump_ivec2;
|
||||||
typedef vec<3, i32, mediump> mediump_ivec3;
|
typedef vec<3, int, mediump> mediump_ivec3;
|
||||||
typedef vec<4, i32, mediump> mediump_ivec4;
|
typedef vec<4, int, mediump> mediump_ivec4;
|
||||||
|
|
||||||
typedef vec<1, i32, highp> highp_ivec1;
|
typedef vec<1, int, highp> highp_ivec1;
|
||||||
typedef vec<2, i32, highp> highp_ivec2;
|
typedef vec<2, int, highp> highp_ivec2;
|
||||||
typedef vec<3, i32, highp> highp_ivec3;
|
typedef vec<3, int, highp> highp_ivec3;
|
||||||
typedef vec<4, i32, highp> highp_ivec4;
|
typedef vec<4, int, highp> highp_ivec4;
|
||||||
|
|
||||||
typedef vec<1, i32, defaultp> ivec1;
|
typedef vec<1, int, defaultp> ivec1;
|
||||||
typedef vec<2, i32, defaultp> ivec2;
|
typedef vec<2, int, defaultp> ivec2;
|
||||||
typedef vec<3, i32, defaultp> ivec3;
|
typedef vec<3, int, defaultp> ivec3;
|
||||||
typedef vec<4, i32, defaultp> ivec4;
|
typedef vec<4, int, defaultp> ivec4;
|
||||||
|
|
||||||
typedef vec<1, i8, lowp> lowp_i8vec1;
|
typedef vec<1, i8, lowp> lowp_i8vec1;
|
||||||
typedef vec<2, i8, lowp> lowp_i8vec2;
|
typedef vec<2, i8, lowp> lowp_i8vec2;
|
||||||
@ -301,25 +301,25 @@ namespace glm
|
|||||||
|
|
||||||
// Vector uint
|
// Vector uint
|
||||||
|
|
||||||
typedef vec<1, u32, lowp> lowp_uvec1;
|
typedef vec<1, uint, lowp> lowp_uvec1;
|
||||||
typedef vec<2, u32, lowp> lowp_uvec2;
|
typedef vec<2, uint, lowp> lowp_uvec2;
|
||||||
typedef vec<3, u32, lowp> lowp_uvec3;
|
typedef vec<3, uint, lowp> lowp_uvec3;
|
||||||
typedef vec<4, u32, lowp> lowp_uvec4;
|
typedef vec<4, uint, lowp> lowp_uvec4;
|
||||||
|
|
||||||
typedef vec<1, u32, mediump> mediump_uvec1;
|
typedef vec<1, uint, mediump> mediump_uvec1;
|
||||||
typedef vec<2, u32, mediump> mediump_uvec2;
|
typedef vec<2, uint, mediump> mediump_uvec2;
|
||||||
typedef vec<3, u32, mediump> mediump_uvec3;
|
typedef vec<3, uint, mediump> mediump_uvec3;
|
||||||
typedef vec<4, u32, mediump> mediump_uvec4;
|
typedef vec<4, uint, mediump> mediump_uvec4;
|
||||||
|
|
||||||
typedef vec<1, u32, highp> highp_uvec1;
|
typedef vec<1, uint, highp> highp_uvec1;
|
||||||
typedef vec<2, u32, highp> highp_uvec2;
|
typedef vec<2, uint, highp> highp_uvec2;
|
||||||
typedef vec<3, u32, highp> highp_uvec3;
|
typedef vec<3, uint, highp> highp_uvec3;
|
||||||
typedef vec<4, u32, highp> highp_uvec4;
|
typedef vec<4, uint, highp> highp_uvec4;
|
||||||
|
|
||||||
typedef vec<1, u32, defaultp> uvec1;
|
typedef vec<1, uint, defaultp> uvec1;
|
||||||
typedef vec<2, u32, defaultp> uvec2;
|
typedef vec<2, uint, defaultp> uvec2;
|
||||||
typedef vec<3, u32, defaultp> uvec3;
|
typedef vec<3, uint, defaultp> uvec3;
|
||||||
typedef vec<4, u32, defaultp> uvec4;
|
typedef vec<4, uint, defaultp> uvec4;
|
||||||
|
|
||||||
typedef vec<1, u8, lowp> lowp_u8vec1;
|
typedef vec<1, u8, lowp> lowp_u8vec1;
|
||||||
typedef vec<2, u8, lowp> lowp_u8vec2;
|
typedef vec<2, u8, lowp> lowp_u8vec2;
|
||||||
|
@ -1279,6 +1279,316 @@ namespace glm
|
|||||||
typedef highp_f64mat4x4 highp_f64mat4;
|
typedef highp_f64mat4x4 highp_f64mat4;
|
||||||
|
|
||||||
|
|
||||||
|
/////////////////////////////
|
||||||
|
// Signed int vector types
|
||||||
|
|
||||||
|
/// Low qualifier signed integer vector of 1 component type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<1, int, lowp> lowp_ivec1;
|
||||||
|
|
||||||
|
/// Low qualifier signed integer vector of 2 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<2, int, lowp> lowp_ivec2;
|
||||||
|
|
||||||
|
/// Low qualifier signed integer vector of 3 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<3, int, lowp> lowp_ivec3;
|
||||||
|
|
||||||
|
/// Low qualifier signed integer vector of 4 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<4, int, lowp> lowp_ivec4;
|
||||||
|
|
||||||
|
|
||||||
|
/// Medium qualifier signed integer vector of 1 component type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<1, int, mediump> mediump_ivec1;
|
||||||
|
|
||||||
|
/// Medium qualifier signed integer vector of 2 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<2, int, mediump> mediump_ivec2;
|
||||||
|
|
||||||
|
/// Medium qualifier signed integer vector of 3 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<3, int, mediump> mediump_ivec3;
|
||||||
|
|
||||||
|
/// Medium qualifier signed integer vector of 4 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<4, int, mediump> mediump_ivec4;
|
||||||
|
|
||||||
|
|
||||||
|
/// High qualifier signed integer vector of 1 component type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<1, int, highp> highp_ivec1;
|
||||||
|
|
||||||
|
/// High qualifier signed integer vector of 2 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<2, int, highp> highp_ivec2;
|
||||||
|
|
||||||
|
/// High qualifier signed integer vector of 3 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<3, int, highp> highp_ivec3;
|
||||||
|
|
||||||
|
/// High qualifier signed integer vector of 4 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<4, int, highp> highp_ivec4;
|
||||||
|
|
||||||
|
|
||||||
|
/// Low qualifier 8 bit signed integer vector of 1 component type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<1, i8, lowp> lowp_i8vec1;
|
||||||
|
|
||||||
|
/// Low qualifier 8 bit signed integer vector of 2 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<2, i8, lowp> lowp_i8vec2;
|
||||||
|
|
||||||
|
/// Low qualifier 8 bit signed integer vector of 3 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<3, i8, lowp> lowp_i8vec3;
|
||||||
|
|
||||||
|
/// Low qualifier 8 bit signed integer vector of 4 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<4, i8, lowp> lowp_i8vec4;
|
||||||
|
|
||||||
|
|
||||||
|
/// Medium qualifier 8 bit signed integer scalar type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<1, i8, mediump> mediump_i8vec1;
|
||||||
|
|
||||||
|
/// Medium qualifier 8 bit signed integer vector of 2 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<2, i8, mediump> mediump_i8vec2;
|
||||||
|
|
||||||
|
/// Medium qualifier 8 bit signed integer vector of 3 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<3, i8, mediump> mediump_i8vec3;
|
||||||
|
|
||||||
|
/// Medium qualifier 8 bit signed integer vector of 4 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<4, i8, mediump> mediump_i8vec4;
|
||||||
|
|
||||||
|
|
||||||
|
/// High qualifier 8 bit signed integer scalar type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<1, i8, highp> highp_i8vec1;
|
||||||
|
|
||||||
|
/// High qualifier 8 bit signed integer vector of 2 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<2, i8, highp> highp_i8vec2;
|
||||||
|
|
||||||
|
/// High qualifier 8 bit signed integer vector of 3 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<3, i8, highp> highp_i8vec3;
|
||||||
|
|
||||||
|
/// High qualifier 8 bit signed integer vector of 4 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<4, i8, highp> highp_i8vec4;
|
||||||
|
|
||||||
|
|
||||||
|
/// Low qualifier 16 bit signed integer scalar type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<1, i16, lowp> lowp_i16vec1;
|
||||||
|
|
||||||
|
/// Low qualifier 16 bit signed integer vector of 2 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<2, i16, lowp> lowp_i16vec2;
|
||||||
|
|
||||||
|
/// Low qualifier 16 bit signed integer vector of 3 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<3, i16, lowp> lowp_i16vec3;
|
||||||
|
|
||||||
|
/// Low qualifier 16 bit signed integer vector of 4 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<4, i16, lowp> lowp_i16vec4;
|
||||||
|
|
||||||
|
|
||||||
|
/// Medium qualifier 16 bit signed integer scalar type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<1, i16, mediump> mediump_i16vec1;
|
||||||
|
|
||||||
|
/// Medium qualifier 16 bit signed integer vector of 2 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<2, i16, mediump> mediump_i16vec2;
|
||||||
|
|
||||||
|
/// Medium qualifier 16 bit signed integer vector of 3 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<3, i16, mediump> mediump_i16vec3;
|
||||||
|
|
||||||
|
/// Medium qualifier 16 bit signed integer vector of 4 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<4, i16, mediump> mediump_i16vec4;
|
||||||
|
|
||||||
|
|
||||||
|
/// High qualifier 16 bit signed integer scalar type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<1, i16, highp> highp_i16vec1;
|
||||||
|
|
||||||
|
/// High qualifier 16 bit signed integer vector of 2 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<2, i16, highp> highp_i16vec2;
|
||||||
|
|
||||||
|
/// High qualifier 16 bit signed integer vector of 3 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<3, i16, highp> highp_i16vec3;
|
||||||
|
|
||||||
|
/// High qualifier 16 bit signed integer vector of 4 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<4, i16, highp> highp_i16vec4;
|
||||||
|
|
||||||
|
|
||||||
|
/// Low qualifier 32 bit signed integer scalar type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<1, i32, lowp> lowp_i32vec1;
|
||||||
|
|
||||||
|
/// Low qualifier 32 bit signed integer vector of 2 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<2, i32, lowp> lowp_i32vec2;
|
||||||
|
|
||||||
|
/// Low qualifier 32 bit signed integer vector of 3 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<3, i32, lowp> lowp_i32vec3;
|
||||||
|
|
||||||
|
/// Low qualifier 32 bit signed integer vector of 4 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<4, i32, lowp> lowp_i32vec4;
|
||||||
|
|
||||||
|
|
||||||
|
/// Medium qualifier 32 bit signed integer scalar type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<1, i32, mediump> mediump_i32vec1;
|
||||||
|
|
||||||
|
/// Medium qualifier 32 bit signed integer vector of 2 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<2, i32, mediump> mediump_i32vec2;
|
||||||
|
|
||||||
|
/// Medium qualifier 32 bit signed integer vector of 3 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<3, i32, mediump> mediump_i32vec3;
|
||||||
|
|
||||||
|
/// Medium qualifier 32 bit signed integer vector of 4 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<4, i32, mediump> mediump_i32vec4;
|
||||||
|
|
||||||
|
|
||||||
|
/// High qualifier 32 bit signed integer scalar type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<1, i32, highp> highp_i32vec1;
|
||||||
|
|
||||||
|
/// High qualifier 32 bit signed integer vector of 2 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<2, i32, highp> highp_i32vec2;
|
||||||
|
|
||||||
|
/// High qualifier 32 bit signed integer vector of 3 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<3, i32, highp> highp_i32vec3;
|
||||||
|
|
||||||
|
/// High qualifier 32 bit signed integer vector of 4 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<4, i32, highp> highp_i32vec4;
|
||||||
|
|
||||||
|
|
||||||
|
/// Low qualifier 64 bit signed integer scalar type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<1, i64, lowp> lowp_i64vec1;
|
||||||
|
|
||||||
|
/// Low qualifier 64 bit signed integer vector of 2 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<2, i64, lowp> lowp_i64vec2;
|
||||||
|
|
||||||
|
/// Low qualifier 64 bit signed integer vector of 3 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<3, i64, lowp> lowp_i64vec3;
|
||||||
|
|
||||||
|
/// Low qualifier 64 bit signed integer vector of 4 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<4, i64, lowp> lowp_i64vec4;
|
||||||
|
|
||||||
|
|
||||||
|
/// Medium qualifier 64 bit signed integer scalar type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<1, i64, mediump> mediump_i64vec1;
|
||||||
|
|
||||||
|
/// Medium qualifier 64 bit signed integer vector of 2 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<2, i64, mediump> mediump_i64vec2;
|
||||||
|
|
||||||
|
/// Medium qualifier 64 bit signed integer vector of 3 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<3, i64, mediump> mediump_i64vec3;
|
||||||
|
|
||||||
|
/// Medium qualifier 64 bit signed integer vector of 4 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<4, i64, mediump> mediump_i64vec4;
|
||||||
|
|
||||||
|
|
||||||
|
/// High qualifier 64 bit signed integer scalar type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<1, i64, highp> highp_i64vec1;
|
||||||
|
|
||||||
|
/// High qualifier 64 bit signed integer vector of 2 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<2, i64, highp> highp_i64vec2;
|
||||||
|
|
||||||
|
/// High qualifier 64 bit signed integer vector of 3 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<3, i64, highp> highp_i64vec3;
|
||||||
|
|
||||||
|
/// High qualifier 64 bit signed integer vector of 4 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<4, i64, highp> highp_i64vec4;
|
||||||
|
|
||||||
|
|
||||||
|
/////////////////////////////
|
||||||
|
// Unsigned int vector types
|
||||||
|
|
||||||
|
/// Low qualifier unsigned integer vector of 1 component type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<1, uint, lowp> lowp_uvec1;
|
||||||
|
|
||||||
|
/// Low qualifier unsigned integer vector of 2 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<2, uint, lowp> lowp_uvec2;
|
||||||
|
|
||||||
|
/// Low qualifier unsigned integer vector of 3 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<3, uint, lowp> lowp_uvec3;
|
||||||
|
|
||||||
|
/// Low qualifier unsigned integer vector of 4 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<4, uint, lowp> lowp_uvec4;
|
||||||
|
|
||||||
|
|
||||||
|
/// Medium qualifier unsigned integer vector of 1 component type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<1, uint, mediump> mediump_uvec1;
|
||||||
|
|
||||||
|
/// Medium qualifier unsigned integer vector of 2 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<2, uint, mediump> mediump_uvec2;
|
||||||
|
|
||||||
|
/// Medium qualifier unsigned integer vector of 3 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<3, uint, mediump> mediump_uvec3;
|
||||||
|
|
||||||
|
/// Medium qualifier unsigned integer vector of 4 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<4, uint, mediump> mediump_uvec4;
|
||||||
|
|
||||||
|
|
||||||
|
/// High qualifier unsigned integer vector of 1 component type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<1, uint, highp> highp_uvec1;
|
||||||
|
|
||||||
|
/// High qualifier unsigned integer vector of 2 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<2, uint, highp> highp_uvec2;
|
||||||
|
|
||||||
|
/// High qualifier unsigned integer vector of 3 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<3, uint, highp> highp_uvec3;
|
||||||
|
|
||||||
|
/// High qualifier unsigned integer vector of 4 components type.
|
||||||
|
/// @see gtc_type_precision
|
||||||
|
typedef vec<4, uint, highp> highp_uvec4;
|
||||||
|
|
||||||
|
|
||||||
/// Low qualifier 8 bit unsigned integer scalar type.
|
/// Low qualifier 8 bit unsigned integer scalar type.
|
||||||
@ -1332,26 +1642,6 @@ namespace glm
|
|||||||
typedef vec<4, u8, highp> highp_u8vec4;
|
typedef vec<4, u8, highp> highp_u8vec4;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// Default qualifier 8 bit unsigned integer scalar type.
|
|
||||||
/// @see gtc_type_precision
|
|
||||||
typedef vec<1, u8, defaultp> u8vec1;
|
|
||||||
|
|
||||||
/// Default qualifier 8 bit unsigned integer vector of 2 components type.
|
|
||||||
/// @see gtc_type_precision
|
|
||||||
typedef vec<2, u8, defaultp> u8vec2;
|
|
||||||
|
|
||||||
/// Default qualifier 8 bit unsigned integer vector of 3 components type.
|
|
||||||
/// @see gtc_type_precision
|
|
||||||
typedef vec<3, u8, defaultp> u8vec3;
|
|
||||||
|
|
||||||
/// Default qualifier 8 bit unsigned integer vector of 4 components type.
|
|
||||||
/// @see gtc_type_precision
|
|
||||||
typedef vec<4, u8, defaultp> u8vec4;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// Low qualifier 16 bit unsigned integer scalar type.
|
/// Low qualifier 16 bit unsigned integer scalar type.
|
||||||
/// @see gtc_type_precision
|
/// @see gtc_type_precision
|
||||||
typedef vec<1, u16, lowp> lowp_u16vec1;
|
typedef vec<1, u16, lowp> lowp_u16vec1;
|
||||||
@ -1403,26 +1693,6 @@ namespace glm
|
|||||||
typedef vec<4, u16, highp> highp_u16vec4;
|
typedef vec<4, u16, highp> highp_u16vec4;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// Default qualifier 16 bit unsigned integer scalar type.
|
|
||||||
/// @see gtc_type_precision
|
|
||||||
typedef vec<1, u16, defaultp> u16vec1;
|
|
||||||
|
|
||||||
/// Default qualifier 16 bit unsigned integer vector of 2 components type.
|
|
||||||
/// @see gtc_type_precision
|
|
||||||
typedef vec<2, u16, defaultp> u16vec2;
|
|
||||||
|
|
||||||
/// Default qualifier 16 bit unsigned integer vector of 3 components type.
|
|
||||||
/// @see gtc_type_precision
|
|
||||||
typedef vec<3, u16, defaultp> u16vec3;
|
|
||||||
|
|
||||||
/// Default qualifier 16 bit unsigned integer vector of 4 components type.
|
|
||||||
/// @see gtc_type_precision
|
|
||||||
typedef vec<4, u16, defaultp> u16vec4;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// Low qualifier 32 bit unsigned integer scalar type.
|
/// Low qualifier 32 bit unsigned integer scalar type.
|
||||||
/// @see gtc_type_precision
|
/// @see gtc_type_precision
|
||||||
typedef vec<1, u32, lowp> lowp_u32vec1;
|
typedef vec<1, u32, lowp> lowp_u32vec1;
|
||||||
@ -1474,26 +1744,6 @@ namespace glm
|
|||||||
typedef vec<4, u32, highp> highp_u32vec4;
|
typedef vec<4, u32, highp> highp_u32vec4;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// Default qualifier 32 bit unsigned integer scalar type.
|
|
||||||
/// @see gtc_type_precision
|
|
||||||
typedef vec<1, u32, defaultp> u32vec1;
|
|
||||||
|
|
||||||
/// Default qualifier 32 bit unsigned integer vector of 2 components type.
|
|
||||||
/// @see gtc_type_precision
|
|
||||||
typedef vec<2, u32, defaultp> u32vec2;
|
|
||||||
|
|
||||||
/// Default qualifier 32 bit unsigned integer vector of 3 components type.
|
|
||||||
/// @see gtc_type_precision
|
|
||||||
typedef vec<3, u32, defaultp> u32vec3;
|
|
||||||
|
|
||||||
/// Default qualifier 32 bit unsigned integer vector of 4 components type.
|
|
||||||
/// @see gtc_type_precision
|
|
||||||
typedef vec<4, u32, defaultp> u32vec4;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// Low qualifier 64 bit unsigned integer scalar type.
|
/// Low qualifier 64 bit unsigned integer scalar type.
|
||||||
/// @see gtc_type_precision
|
/// @see gtc_type_precision
|
||||||
typedef vec<1, u64, lowp> lowp_u64vec1;
|
typedef vec<1, u64, lowp> lowp_u64vec1;
|
||||||
@ -1545,25 +1795,6 @@ namespace glm
|
|||||||
typedef vec<4, u64, highp> highp_u64vec4;
|
typedef vec<4, u64, highp> highp_u64vec4;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// Default qualifier 64 bit unsigned integer scalar type.
|
|
||||||
/// @see gtc_type_precision
|
|
||||||
typedef vec<1, u64, defaultp> u64vec1;
|
|
||||||
|
|
||||||
/// Default qualifier 64 bit unsigned integer vector of 2 components type.
|
|
||||||
/// @see gtc_type_precision
|
|
||||||
typedef vec<2, u64, defaultp> u64vec2;
|
|
||||||
|
|
||||||
/// Default qualifier 64 bit unsigned integer vector of 3 components type.
|
|
||||||
/// @see gtc_type_precision
|
|
||||||
typedef vec<3, u64, defaultp> u64vec3;
|
|
||||||
|
|
||||||
/// Default qualifier 64 bit unsigned integer vector of 4 components type.
|
|
||||||
/// @see gtc_type_precision
|
|
||||||
typedef vec<4, u64, defaultp> u64vec4;
|
|
||||||
|
|
||||||
|
|
||||||
//////////////////////
|
//////////////////////
|
||||||
// Float vector types
|
// Float vector types
|
||||||
|
|
||||||
|
@ -20,9 +20,9 @@
|
|||||||
#include "../ext/vector_double1.hpp"
|
#include "../ext/vector_double1.hpp"
|
||||||
#include "../ext/vector_double1_precision.hpp"
|
#include "../ext/vector_double1_precision.hpp"
|
||||||
#include "../ext/vector_int1.hpp"
|
#include "../ext/vector_int1.hpp"
|
||||||
#include "../ext/vector_int1_precision.hpp"
|
#include "../ext/vector_int1_sized.hpp"
|
||||||
#include "../ext/vector_uint1.hpp"
|
#include "../ext/vector_uint1.hpp"
|
||||||
#include "../ext/vector_uint1_precision.hpp"
|
#include "../ext/vector_uint1_sized.hpp"
|
||||||
|
|
||||||
#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
|
#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
|
||||||
# pragma message("GLM: GLM_GTC_vec1 extension included")
|
# pragma message("GLM: GLM_GTC_vec1 extension included")
|
||||||
|
@ -9,6 +9,6 @@
|
|||||||
#include "./ext/vector_double2.hpp"
|
#include "./ext/vector_double2.hpp"
|
||||||
#include "./ext/vector_double2_precision.hpp"
|
#include "./ext/vector_double2_precision.hpp"
|
||||||
#include "./ext/vector_int2.hpp"
|
#include "./ext/vector_int2.hpp"
|
||||||
#include "./ext/vector_int2_precision.hpp"
|
#include "./ext/vector_int2_sized.hpp"
|
||||||
#include "./ext/vector_uint2.hpp"
|
#include "./ext/vector_uint2.hpp"
|
||||||
#include "./ext/vector_uint2_precision.hpp"
|
#include "./ext/vector_uint2_sized.hpp"
|
||||||
|
@ -9,6 +9,6 @@
|
|||||||
#include "./ext/vector_double3.hpp"
|
#include "./ext/vector_double3.hpp"
|
||||||
#include "./ext/vector_double3_precision.hpp"
|
#include "./ext/vector_double3_precision.hpp"
|
||||||
#include "./ext/vector_int3.hpp"
|
#include "./ext/vector_int3.hpp"
|
||||||
#include "./ext/vector_int3_precision.hpp"
|
#include "./ext/vector_int3_sized.hpp"
|
||||||
#include "./ext/vector_uint3.hpp"
|
#include "./ext/vector_uint3.hpp"
|
||||||
#include "./ext/vector_uint3_precision.hpp"
|
#include "./ext/vector_uint3_sized.hpp"
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#include "./ext/vector_double4.hpp"
|
#include "./ext/vector_double4.hpp"
|
||||||
#include "./ext/vector_double4_precision.hpp"
|
#include "./ext/vector_double4_precision.hpp"
|
||||||
#include "./ext/vector_int4.hpp"
|
#include "./ext/vector_int4.hpp"
|
||||||
#include "./ext/vector_int4_precision.hpp"
|
#include "./ext/vector_int4_sized.hpp"
|
||||||
#include "./ext/vector_uint4.hpp"
|
#include "./ext/vector_uint4.hpp"
|
||||||
#include "./ext/vector_uint4_precision.hpp"
|
#include "./ext/vector_uint4_sized.hpp"
|
||||||
|
|
||||||
|
@ -1,24 +1,9 @@
|
|||||||
#include <glm/ext/vector_int1_sized.hpp>
|
#include <glm/ext/vector_int1_sized.hpp>
|
||||||
|
|
||||||
#if GLM_HAS_STATIC_ASSERT
|
#if GLM_HAS_STATIC_ASSERT
|
||||||
static_assert(sizeof(glm::lowp_i8vec1) == 1, "int8 size isn't 1 byte on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_i8vec1) == 1, "int8 size isn't 1 byte on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_i8vec1) == 1, "int8 size isn't 1 byte on this platform");
|
|
||||||
static_assert(sizeof(glm::i8vec1) == 1, "int8 size isn't 1 byte on this platform");
|
static_assert(sizeof(glm::i8vec1) == 1, "int8 size isn't 1 byte on this platform");
|
||||||
|
|
||||||
static_assert(sizeof(glm::lowp_i16vec1) == 2, "int16 size isn't 2 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_i16vec1) == 2, "int16 size isn't 2 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_i16vec1) == 2, "int16 size isn't 2 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::i16vec1) == 2, "int16 size isn't 2 bytes on this platform");
|
static_assert(sizeof(glm::i16vec1) == 2, "int16 size isn't 2 bytes on this platform");
|
||||||
|
|
||||||
static_assert(sizeof(glm::lowp_i32vec1) == 4, "int32 size isn't 4 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_i32vec1) == 4, "int32 size isn't 4 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_i32vec1) == 4, "int32 size isn't 4 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::i32vec1) == 4, "int32 size isn't 4 bytes on this platform");
|
static_assert(sizeof(glm::i32vec1) == 4, "int32 size isn't 4 bytes on this platform");
|
||||||
|
|
||||||
static_assert(sizeof(glm::lowp_i64vec1) == 8, "int64 size isn't 8 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_i64vec1) == 8, "int64 size isn't 8 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_i64vec1) == 8, "int64 size isn't 8 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::i64vec1) == 8, "int64 size isn't 8 bytes on this platform");
|
static_assert(sizeof(glm::i64vec1) == 8, "int64 size isn't 8 bytes on this platform");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -26,24 +11,9 @@ static int test_size()
|
|||||||
{
|
{
|
||||||
int Error = 0;
|
int Error = 0;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_i8vec1) == 1 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_i8vec1) == 1 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_i8vec1) == 1 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::i8vec1) == 1 ? 0 : 1;
|
Error += sizeof(glm::i8vec1) == 1 ? 0 : 1;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_i16vec1) == 2 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_i16vec1) == 2 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_i16vec1) == 2 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::i16vec1) == 2 ? 0 : 1;
|
Error += sizeof(glm::i16vec1) == 2 ? 0 : 1;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_i32vec1) == 4 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_i32vec1) == 4 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_i32vec1) == 4 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::i32vec1) == 4 ? 0 : 1;
|
Error += sizeof(glm::i32vec1) == 4 ? 0 : 1;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_i64vec1) == 8 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_i64vec1) == 8 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_i64vec1) == 8 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::i64vec1) == 8 ? 0 : 1;
|
Error += sizeof(glm::i64vec1) == 8 ? 0 : 1;
|
||||||
|
|
||||||
return Error;
|
return Error;
|
||||||
|
@ -1,24 +1,9 @@
|
|||||||
#include <glm/ext/vector_int2_sized.hpp>
|
#include <glm/ext/vector_int2_sized.hpp>
|
||||||
|
|
||||||
#if GLM_HAS_STATIC_ASSERT
|
#if GLM_HAS_STATIC_ASSERT
|
||||||
static_assert(sizeof(glm::lowp_i8vec2) == 2, "int8 size isn't 1 byte on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_i8vec2) == 2, "int8 size isn't 1 byte on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_i8vec2) == 2, "int8 size isn't 1 byte on this platform");
|
|
||||||
static_assert(sizeof(glm::i8vec2) == 2, "int8 size isn't 1 byte on this platform");
|
static_assert(sizeof(glm::i8vec2) == 2, "int8 size isn't 1 byte on this platform");
|
||||||
|
|
||||||
static_assert(sizeof(glm::lowp_i16vec2) == 4, "int16 size isn't 2 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_i16vec2) == 4, "int16 size isn't 2 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_i16vec2) == 4, "int16 size isn't 2 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::i16vec2) == 4, "int16 size isn't 2 bytes on this platform");
|
static_assert(sizeof(glm::i16vec2) == 4, "int16 size isn't 2 bytes on this platform");
|
||||||
|
|
||||||
static_assert(sizeof(glm::lowp_i32vec2) == 8, "int32 size isn't 4 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_i32vec2) == 8, "int32 size isn't 4 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_i32vec2) == 8, "int32 size isn't 4 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::i32vec2) == 8, "int32 size isn't 4 bytes on this platform");
|
static_assert(sizeof(glm::i32vec2) == 8, "int32 size isn't 4 bytes on this platform");
|
||||||
|
|
||||||
static_assert(sizeof(glm::lowp_i64vec2) == 16, "int64 size isn't 8 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_i64vec2) == 16, "int64 size isn't 8 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_i64vec2) == 16, "int64 size isn't 8 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::i64vec2) == 16, "int64 size isn't 8 bytes on this platform");
|
static_assert(sizeof(glm::i64vec2) == 16, "int64 size isn't 8 bytes on this platform");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -26,24 +11,9 @@ static int test_size()
|
|||||||
{
|
{
|
||||||
int Error = 0;
|
int Error = 0;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_i8vec2) == 2 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_i8vec2) == 2 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_i8vec2) == 2 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::i8vec2) == 2 ? 0 : 1;
|
Error += sizeof(glm::i8vec2) == 2 ? 0 : 1;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_i16vec2) == 4 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_i16vec2) == 4 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_i16vec2) == 4 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::i16vec2) == 4 ? 0 : 1;
|
Error += sizeof(glm::i16vec2) == 4 ? 0 : 1;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_i32vec2) == 8 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_i32vec2) == 8 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_i32vec2) == 8 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::i32vec2) == 8 ? 0 : 1;
|
Error += sizeof(glm::i32vec2) == 8 ? 0 : 1;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_i64vec2) == 16 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_i64vec2) == 16 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_i64vec2) == 16 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::i64vec2) == 16 ? 0 : 1;
|
Error += sizeof(glm::i64vec2) == 16 ? 0 : 1;
|
||||||
|
|
||||||
return Error;
|
return Error;
|
||||||
|
@ -1,24 +1,9 @@
|
|||||||
#include <glm/ext/vector_int3_sized.hpp>
|
#include <glm/ext/vector_int3_sized.hpp>
|
||||||
|
|
||||||
#if GLM_HAS_STATIC_ASSERT
|
#if GLM_HAS_STATIC_ASSERT
|
||||||
static_assert(sizeof(glm::lowp_i8vec3) == 3, "int8 size isn't 1 byte on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_i8vec3) == 3, "int8 size isn't 1 byte on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_i8vec3) == 3, "int8 size isn't 1 byte on this platform");
|
|
||||||
static_assert(sizeof(glm::i8vec3) == 3, "int8 size isn't 1 byte on this platform");
|
static_assert(sizeof(glm::i8vec3) == 3, "int8 size isn't 1 byte on this platform");
|
||||||
|
|
||||||
static_assert(sizeof(glm::lowp_i16vec3) == 6, "int16 size isn't 2 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_i16vec3) == 6, "int16 size isn't 2 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_i16vec3) == 6, "int16 size isn't 2 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::i16vec3) == 6, "int16 size isn't 2 bytes on this platform");
|
static_assert(sizeof(glm::i16vec3) == 6, "int16 size isn't 2 bytes on this platform");
|
||||||
|
|
||||||
static_assert(sizeof(glm::lowp_i32vec3) == 12, "int32 size isn't 4 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_i32vec3) == 12, "int32 size isn't 4 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_i32vec3) == 12, "int32 size isn't 4 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::i32vec3) == 12, "int32 size isn't 4 bytes on this platform");
|
static_assert(sizeof(glm::i32vec3) == 12, "int32 size isn't 4 bytes on this platform");
|
||||||
|
|
||||||
static_assert(sizeof(glm::lowp_i64vec3) == 24, "int64 size isn't 8 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_i64vec3) == 24, "int64 size isn't 8 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_i64vec3) == 24, "int64 size isn't 8 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::i64vec3) == 24, "int64 size isn't 8 bytes on this platform");
|
static_assert(sizeof(glm::i64vec3) == 24, "int64 size isn't 8 bytes on this platform");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -26,24 +11,9 @@ static int test_size()
|
|||||||
{
|
{
|
||||||
int Error = 0;
|
int Error = 0;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_i8vec3) == 3 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_i8vec3) == 3 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_i8vec3) == 3 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::i8vec3) == 3 ? 0 : 1;
|
Error += sizeof(glm::i8vec3) == 3 ? 0 : 1;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_i16vec3) == 6 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_i16vec3) == 6 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_i16vec3) == 6 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::i16vec3) == 6 ? 0 : 1;
|
Error += sizeof(glm::i16vec3) == 6 ? 0 : 1;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_i32vec3) == 12 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_i32vec3) == 12 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_i32vec3) == 12 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::i32vec3) == 12 ? 0 : 1;
|
Error += sizeof(glm::i32vec3) == 12 ? 0 : 1;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_i64vec3) == 24 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_i64vec3) == 24 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_i64vec3) == 24 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::i64vec3) == 24 ? 0 : 1;
|
Error += sizeof(glm::i64vec3) == 24 ? 0 : 1;
|
||||||
|
|
||||||
return Error;
|
return Error;
|
||||||
|
@ -1,24 +1,9 @@
|
|||||||
#include <glm/ext/vector_int4_sized.hpp>
|
#include <glm/ext/vector_int4_sized.hpp>
|
||||||
|
|
||||||
#if GLM_HAS_STATIC_ASSERT
|
#if GLM_HAS_STATIC_ASSERT
|
||||||
static_assert(sizeof(glm::lowp_i8vec4) == 4, "int8 size isn't 1 byte on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_i8vec4) == 4, "int8 size isn't 1 byte on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_i8vec4) == 4, "int8 size isn't 1 byte on this platform");
|
|
||||||
static_assert(sizeof(glm::i8vec4) == 4, "int8 size isn't 1 byte on this platform");
|
static_assert(sizeof(glm::i8vec4) == 4, "int8 size isn't 1 byte on this platform");
|
||||||
|
|
||||||
static_assert(sizeof(glm::lowp_i16vec4) == 8, "int16 size isn't 2 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_i16vec4) == 8, "int16 size isn't 2 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_i16vec4) == 8, "int16 size isn't 2 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::i16vec4) == 8, "int16 size isn't 2 bytes on this platform");
|
static_assert(sizeof(glm::i16vec4) == 8, "int16 size isn't 2 bytes on this platform");
|
||||||
|
|
||||||
static_assert(sizeof(glm::lowp_i32vec4) == 16, "int32 size isn't 4 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_i32vec4) == 16, "int32 size isn't 4 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_i32vec4) == 16, "int32 size isn't 4 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::i32vec4) == 16, "int32 size isn't 4 bytes on this platform");
|
static_assert(sizeof(glm::i32vec4) == 16, "int32 size isn't 4 bytes on this platform");
|
||||||
|
|
||||||
static_assert(sizeof(glm::lowp_i64vec4) == 32, "int64 size isn't 8 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_i64vec4) == 32, "int64 size isn't 8 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_i64vec4) == 32, "int64 size isn't 8 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::i64vec4) == 32, "int64 size isn't 8 bytes on this platform");
|
static_assert(sizeof(glm::i64vec4) == 32, "int64 size isn't 8 bytes on this platform");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -26,24 +11,9 @@ static int test_size()
|
|||||||
{
|
{
|
||||||
int Error = 0;
|
int Error = 0;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_i8vec4) == 4 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_i8vec4) == 4 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_i8vec4) == 4 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::i8vec4) == 4 ? 0 : 1;
|
Error += sizeof(glm::i8vec4) == 4 ? 0 : 1;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_i16vec4) == 8 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_i16vec4) == 8 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_i16vec4) == 8 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::i16vec4) == 8 ? 0 : 1;
|
Error += sizeof(glm::i16vec4) == 8 ? 0 : 1;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_i32vec4) == 16 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_i32vec4) == 16 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_i32vec4) == 16 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::i32vec4) == 16 ? 0 : 1;
|
Error += sizeof(glm::i32vec4) == 16 ? 0 : 1;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_i64vec4) == 32 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_i64vec4) == 32 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_i64vec4) == 32 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::i64vec4) == 32 ? 0 : 1;
|
Error += sizeof(glm::i64vec4) == 32 ? 0 : 1;
|
||||||
|
|
||||||
return Error;
|
return Error;
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#include <glm/ext/vector_integer.hpp>
|
#include <glm/ext/vector_integer.hpp>
|
||||||
#include <glm/ext/vector_int1.hpp>
|
#include <glm/ext/vector_int1.hpp>
|
||||||
#include <glm/ext/vector_int1_precision.hpp>
|
#include <glm/ext/vector_int1_sized.hpp>
|
||||||
#include <glm/ext/vector_uint1.hpp>
|
#include <glm/ext/vector_uint1.hpp>
|
||||||
#include <glm/ext/vector_uint1_precision.hpp>
|
#include <glm/ext/vector_uint1_sized.hpp>
|
||||||
|
|
||||||
template <typename genType>
|
template <typename genType>
|
||||||
static int test_operators()
|
static int test_operators()
|
||||||
@ -153,54 +153,64 @@ int main()
|
|||||||
int Error = 0;
|
int Error = 0;
|
||||||
|
|
||||||
Error += test_operators<glm::ivec1>();
|
Error += test_operators<glm::ivec1>();
|
||||||
Error += test_operators<glm::lowp_ivec1>();
|
Error += test_operators<glm::i8vec1>();
|
||||||
Error += test_operators<glm::mediump_ivec1>();
|
Error += test_operators<glm::i16vec1>();
|
||||||
Error += test_operators<glm::highp_ivec1>();
|
Error += test_operators<glm::i32vec1>();
|
||||||
|
Error += test_operators<glm::i64vec1>();
|
||||||
|
|
||||||
Error += test_ctor<glm::ivec1>();
|
Error += test_ctor<glm::ivec1>();
|
||||||
Error += test_ctor<glm::lowp_ivec1>();
|
Error += test_ctor<glm::i8vec1>();
|
||||||
Error += test_ctor<glm::mediump_ivec1>();
|
Error += test_ctor<glm::i16vec1>();
|
||||||
Error += test_ctor<glm::highp_ivec1>();
|
Error += test_ctor<glm::i32vec1>();
|
||||||
|
Error += test_ctor<glm::i64vec1>();
|
||||||
|
|
||||||
Error += test_size<glm::ivec1>();
|
Error += test_size<glm::ivec1>();
|
||||||
Error += test_size<glm::lowp_ivec1>();
|
Error += test_size<glm::i8vec1>();
|
||||||
Error += test_size<glm::mediump_ivec1>();
|
Error += test_size<glm::i16vec1>();
|
||||||
Error += test_size<glm::highp_ivec1>();
|
Error += test_size<glm::i32vec1>();
|
||||||
|
Error += test_size<glm::i64vec1>();
|
||||||
|
|
||||||
Error += test_relational<glm::ivec1>();
|
Error += test_relational<glm::ivec1>();
|
||||||
Error += test_relational<glm::lowp_ivec1>();
|
Error += test_relational<glm::i8vec1>();
|
||||||
Error += test_relational<glm::mediump_ivec1>();
|
Error += test_relational<glm::i16vec1>();
|
||||||
Error += test_relational<glm::highp_ivec1>();
|
Error += test_relational<glm::i32vec1>();
|
||||||
|
Error += test_relational<glm::i64vec1>();
|
||||||
|
|
||||||
Error += test_constexpr<glm::ivec1>();
|
Error += test_constexpr<glm::ivec1>();
|
||||||
Error += test_constexpr<glm::lowp_ivec1>();
|
Error += test_constexpr<glm::i8vec1>();
|
||||||
Error += test_constexpr<glm::mediump_ivec1>();
|
Error += test_constexpr<glm::i16vec1>();
|
||||||
Error += test_constexpr<glm::highp_ivec1>();
|
Error += test_constexpr<glm::i32vec1>();
|
||||||
|
Error += test_constexpr<glm::i64vec1>();
|
||||||
|
|
||||||
Error += test_operators<glm::uvec1>();
|
Error += test_operators<glm::uvec1>();
|
||||||
Error += test_operators<glm::lowp_uvec1>();
|
Error += test_operators<glm::u8vec1>();
|
||||||
Error += test_operators<glm::mediump_uvec1>();
|
Error += test_operators<glm::u16vec1>();
|
||||||
Error += test_operators<glm::highp_uvec1>();
|
Error += test_operators<glm::u32vec1>();
|
||||||
|
Error += test_operators<glm::u64vec1>();
|
||||||
|
|
||||||
Error += test_ctor<glm::uvec1>();
|
Error += test_ctor<glm::uvec1>();
|
||||||
Error += test_ctor<glm::lowp_uvec1>();
|
Error += test_ctor<glm::u8vec1>();
|
||||||
Error += test_ctor<glm::mediump_uvec1>();
|
Error += test_ctor<glm::u16vec1>();
|
||||||
Error += test_ctor<glm::highp_uvec1>();
|
Error += test_ctor<glm::u32vec1>();
|
||||||
|
Error += test_ctor<glm::u64vec1>();
|
||||||
|
|
||||||
Error += test_size<glm::uvec1>();
|
Error += test_size<glm::uvec1>();
|
||||||
Error += test_size<glm::lowp_uvec1>();
|
Error += test_size<glm::u8vec1>();
|
||||||
Error += test_size<glm::mediump_uvec1>();
|
Error += test_size<glm::u16vec1>();
|
||||||
Error += test_size<glm::highp_uvec1>();
|
Error += test_size<glm::u32vec1>();
|
||||||
|
Error += test_size<glm::u64vec1>();
|
||||||
|
|
||||||
Error += test_relational<glm::uvec1>();
|
Error += test_relational<glm::uvec1>();
|
||||||
Error += test_relational<glm::lowp_uvec1>();
|
Error += test_relational<glm::u8vec1>();
|
||||||
Error += test_relational<glm::mediump_uvec1>();
|
Error += test_relational<glm::u16vec1>();
|
||||||
Error += test_relational<glm::highp_uvec1>();
|
Error += test_relational<glm::u32vec1>();
|
||||||
|
Error += test_relational<glm::u64vec1>();
|
||||||
|
|
||||||
Error += test_constexpr<glm::uvec1>();
|
Error += test_constexpr<glm::uvec1>();
|
||||||
Error += test_constexpr<glm::lowp_uvec1>();
|
Error += test_constexpr<glm::u8vec1>();
|
||||||
Error += test_constexpr<glm::mediump_uvec1>();
|
Error += test_constexpr<glm::u16vec1>();
|
||||||
Error += test_constexpr<glm::highp_uvec1>();
|
Error += test_constexpr<glm::u32vec1>();
|
||||||
|
Error += test_constexpr<glm::u64vec1>();
|
||||||
|
|
||||||
return Error;
|
return Error;
|
||||||
}
|
}
|
||||||
|
@ -1,24 +1,9 @@
|
|||||||
#include <glm/ext/vector_uint1_sized.hpp>
|
#include <glm/ext/vector_uint1_sized.hpp>
|
||||||
|
|
||||||
#if GLM_HAS_STATIC_ASSERT
|
#if GLM_HAS_STATIC_ASSERT
|
||||||
static_assert(sizeof(glm::lowp_u8vec1) == 1, "uint8 size isn't 1 byte on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_u8vec1) == 1, "uint8 size isn't 1 byte on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_u8vec1) == 1, "uint8 size isn't 1 byte on this platform");
|
|
||||||
static_assert(sizeof(glm::u8vec1) == 1, "uint8 size isn't 1 byte on this platform");
|
static_assert(sizeof(glm::u8vec1) == 1, "uint8 size isn't 1 byte on this platform");
|
||||||
|
|
||||||
static_assert(sizeof(glm::lowp_u16vec1) == 2, "uint16 size isn't 2 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_u16vec1) == 2, "uint16 size isn't 2 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_u16vec1) == 2, "uint16 size isn't 2 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::u16vec1) == 2, "uint16 size isn't 2 bytes on this platform");
|
static_assert(sizeof(glm::u16vec1) == 2, "uint16 size isn't 2 bytes on this platform");
|
||||||
|
|
||||||
static_assert(sizeof(glm::lowp_u32vec1) == 4, "uint32 size isn't 4 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_u32vec1) == 4, "uint32 size isn't 4 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_u32vec1) == 4, "uint32 size isn't 4 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::u32vec1) == 4, "uint32 size isn't 4 bytes on this platform");
|
static_assert(sizeof(glm::u32vec1) == 4, "uint32 size isn't 4 bytes on this platform");
|
||||||
|
|
||||||
static_assert(sizeof(glm::lowp_u64vec1) == 8, "uint64 size isn't 8 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_u64vec1) == 8, "uint64 size isn't 8 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_u64vec1) == 8, "uint64 size isn't 8 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::u64vec1) == 8, "uint64 size isn't 8 bytes on this platform");
|
static_assert(sizeof(glm::u64vec1) == 8, "uint64 size isn't 8 bytes on this platform");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -26,24 +11,9 @@ static int test_size()
|
|||||||
{
|
{
|
||||||
int Error = 0;
|
int Error = 0;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_u8vec1) == 1 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_u8vec1) == 1 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_u8vec1) == 1 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::u8vec1) == 1 ? 0 : 1;
|
Error += sizeof(glm::u8vec1) == 1 ? 0 : 1;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_u16vec1) == 2 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_u16vec1) == 2 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_u16vec1) == 2 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::u16vec1) == 2 ? 0 : 1;
|
Error += sizeof(glm::u16vec1) == 2 ? 0 : 1;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_u32vec1) == 4 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_u32vec1) == 4 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_u32vec1) == 4 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::u32vec1) == 4 ? 0 : 1;
|
Error += sizeof(glm::u32vec1) == 4 ? 0 : 1;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_u64vec1) == 8 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_u64vec1) == 8 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_u64vec1) == 8 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::u64vec1) == 8 ? 0 : 1;
|
Error += sizeof(glm::u64vec1) == 8 ? 0 : 1;
|
||||||
|
|
||||||
return Error;
|
return Error;
|
||||||
|
@ -1,24 +1,9 @@
|
|||||||
#include <glm/ext/vector_uint2_sized.hpp>
|
#include <glm/ext/vector_uint2_sized.hpp>
|
||||||
|
|
||||||
#if GLM_HAS_STATIC_ASSERT
|
#if GLM_HAS_STATIC_ASSERT
|
||||||
static_assert(sizeof(glm::lowp_u8vec2) == 2, "int8 size isn't 1 byte on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_u8vec2) == 2, "int8 size isn't 1 byte on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_u8vec2) == 2, "int8 size isn't 1 byte on this platform");
|
|
||||||
static_assert(sizeof(glm::u8vec2) == 2, "int8 size isn't 1 byte on this platform");
|
static_assert(sizeof(glm::u8vec2) == 2, "int8 size isn't 1 byte on this platform");
|
||||||
|
|
||||||
static_assert(sizeof(glm::lowp_u16vec2) == 4, "int16 size isn't 2 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_u16vec2) == 4, "int16 size isn't 2 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_u16vec2) == 4, "int16 size isn't 2 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::u16vec2) == 4, "int16 size isn't 2 bytes on this platform");
|
static_assert(sizeof(glm::u16vec2) == 4, "int16 size isn't 2 bytes on this platform");
|
||||||
|
|
||||||
static_assert(sizeof(glm::lowp_u32vec2) == 8, "int32 size isn't 4 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_u32vec2) == 8, "int32 size isn't 4 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_u32vec2) == 8, "int32 size isn't 4 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::u32vec2) == 8, "int32 size isn't 4 bytes on this platform");
|
static_assert(sizeof(glm::u32vec2) == 8, "int32 size isn't 4 bytes on this platform");
|
||||||
|
|
||||||
static_assert(sizeof(glm::lowp_u64vec2) == 16, "int64 size isn't 8 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_u64vec2) == 16, "int64 size isn't 8 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_u64vec2) == 16, "int64 size isn't 8 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::u64vec2) == 16, "int64 size isn't 8 bytes on this platform");
|
static_assert(sizeof(glm::u64vec2) == 16, "int64 size isn't 8 bytes on this platform");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -26,24 +11,9 @@ static int test_size()
|
|||||||
{
|
{
|
||||||
int Error = 0;
|
int Error = 0;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_u8vec2) == 2 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_u8vec2) == 2 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_u8vec2) == 2 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::u8vec2) == 2 ? 0 : 1;
|
Error += sizeof(glm::u8vec2) == 2 ? 0 : 1;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_u16vec2) == 4 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_u16vec2) == 4 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_u16vec2) == 4 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::u16vec2) == 4 ? 0 : 1;
|
Error += sizeof(glm::u16vec2) == 4 ? 0 : 1;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_u32vec2) == 8 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_u32vec2) == 8 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_u32vec2) == 8 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::u32vec2) == 8 ? 0 : 1;
|
Error += sizeof(glm::u32vec2) == 8 ? 0 : 1;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_u64vec2) == 16 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_u64vec2) == 16 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_u64vec2) == 16 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::u64vec2) == 16 ? 0 : 1;
|
Error += sizeof(glm::u64vec2) == 16 ? 0 : 1;
|
||||||
|
|
||||||
return Error;
|
return Error;
|
||||||
|
@ -1,24 +1,9 @@
|
|||||||
#include <glm/ext/vector_uint3_sized.hpp>
|
#include <glm/ext/vector_uint3_sized.hpp>
|
||||||
|
|
||||||
#if GLM_HAS_STATIC_ASSERT
|
#if GLM_HAS_STATIC_ASSERT
|
||||||
static_assert(sizeof(glm::lowp_u8vec3) == 3, "int8 size isn't 1 byte on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_u8vec3) == 3, "int8 size isn't 1 byte on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_u8vec3) == 3, "int8 size isn't 1 byte on this platform");
|
|
||||||
static_assert(sizeof(glm::u8vec3) == 3, "int8 size isn't 1 byte on this platform");
|
static_assert(sizeof(glm::u8vec3) == 3, "int8 size isn't 1 byte on this platform");
|
||||||
|
|
||||||
static_assert(sizeof(glm::lowp_u16vec3) == 6, "int16 size isn't 2 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_u16vec3) == 6, "int16 size isn't 2 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_u16vec3) == 6, "int16 size isn't 2 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::u16vec3) == 6, "int16 size isn't 2 bytes on this platform");
|
static_assert(sizeof(glm::u16vec3) == 6, "int16 size isn't 2 bytes on this platform");
|
||||||
|
|
||||||
static_assert(sizeof(glm::lowp_u32vec3) == 12, "int32 size isn't 4 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_u32vec3) == 12, "int32 size isn't 4 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_u32vec3) == 12, "int32 size isn't 4 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::u32vec3) == 12, "int32 size isn't 4 bytes on this platform");
|
static_assert(sizeof(glm::u32vec3) == 12, "int32 size isn't 4 bytes on this platform");
|
||||||
|
|
||||||
static_assert(sizeof(glm::lowp_u64vec3) == 24, "int64 size isn't 8 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_u64vec3) == 24, "int64 size isn't 8 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_u64vec3) == 24, "int64 size isn't 8 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::u64vec3) == 24, "int64 size isn't 8 bytes on this platform");
|
static_assert(sizeof(glm::u64vec3) == 24, "int64 size isn't 8 bytes on this platform");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -26,24 +11,9 @@ static int test_size()
|
|||||||
{
|
{
|
||||||
int Error = 0;
|
int Error = 0;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_u8vec3) == 3 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_u8vec3) == 3 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_u8vec3) == 3 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::u8vec3) == 3 ? 0 : 1;
|
Error += sizeof(glm::u8vec3) == 3 ? 0 : 1;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_u16vec3) == 6 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_u16vec3) == 6 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_u16vec3) == 6 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::u16vec3) == 6 ? 0 : 1;
|
Error += sizeof(glm::u16vec3) == 6 ? 0 : 1;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_u32vec3) == 12 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_u32vec3) == 12 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_u32vec3) == 12 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::u32vec3) == 12 ? 0 : 1;
|
Error += sizeof(glm::u32vec3) == 12 ? 0 : 1;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_u64vec3) == 24 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_u64vec3) == 24 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_u64vec3) == 24 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::u64vec3) == 24 ? 0 : 1;
|
Error += sizeof(glm::u64vec3) == 24 ? 0 : 1;
|
||||||
|
|
||||||
return Error;
|
return Error;
|
||||||
|
@ -1,24 +1,9 @@
|
|||||||
#include <glm/ext/vector_uint4_sized.hpp>
|
#include <glm/ext/vector_uint4_sized.hpp>
|
||||||
|
|
||||||
#if GLM_HAS_STATIC_ASSERT
|
#if GLM_HAS_STATIC_ASSERT
|
||||||
static_assert(sizeof(glm::lowp_u8vec4) == 4, "int8 size isn't 1 byte on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_u8vec4) == 4, "int8 size isn't 1 byte on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_u8vec4) == 4, "int8 size isn't 1 byte on this platform");
|
|
||||||
static_assert(sizeof(glm::u8vec4) == 4, "int8 size isn't 1 byte on this platform");
|
static_assert(sizeof(glm::u8vec4) == 4, "int8 size isn't 1 byte on this platform");
|
||||||
|
|
||||||
static_assert(sizeof(glm::lowp_u16vec4) == 8, "int16 size isn't 2 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_u16vec4) == 8, "int16 size isn't 2 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_u16vec4) == 8, "int16 size isn't 2 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::u16vec4) == 8, "int16 size isn't 2 bytes on this platform");
|
static_assert(sizeof(glm::u16vec4) == 8, "int16 size isn't 2 bytes on this platform");
|
||||||
|
|
||||||
static_assert(sizeof(glm::lowp_u32vec4) == 16, "int32 size isn't 4 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_u32vec4) == 16, "int32 size isn't 4 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_u32vec4) == 16, "int32 size isn't 4 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::u32vec4) == 16, "int32 size isn't 4 bytes on this platform");
|
static_assert(sizeof(glm::u32vec4) == 16, "int32 size isn't 4 bytes on this platform");
|
||||||
|
|
||||||
static_assert(sizeof(glm::lowp_u64vec4) == 32, "int64 size isn't 8 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::mediump_u64vec4) == 32, "int64 size isn't 8 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::highp_u64vec4) == 32, "int64 size isn't 8 bytes on this platform");
|
|
||||||
static_assert(sizeof(glm::u64vec4) == 32, "int64 size isn't 8 bytes on this platform");
|
static_assert(sizeof(glm::u64vec4) == 32, "int64 size isn't 8 bytes on this platform");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -26,24 +11,9 @@ static int test_size()
|
|||||||
{
|
{
|
||||||
int Error = 0;
|
int Error = 0;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_u8vec4) == 4 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_u8vec4) == 4 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_u8vec4) == 4 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::u8vec4) == 4 ? 0 : 1;
|
Error += sizeof(glm::u8vec4) == 4 ? 0 : 1;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_u16vec4) == 8 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_u16vec4) == 8 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_u16vec4) == 8 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::u16vec4) == 8 ? 0 : 1;
|
Error += sizeof(glm::u16vec4) == 8 ? 0 : 1;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_u32vec4) == 16 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_u32vec4) == 16 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_u32vec4) == 16 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::u32vec4) == 16 ? 0 : 1;
|
Error += sizeof(glm::u32vec4) == 16 ? 0 : 1;
|
||||||
|
|
||||||
Error += sizeof(glm::lowp_u64vec4) == 32 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::mediump_u64vec4) == 32 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::highp_u64vec4) == 32 ? 0 : 1;
|
|
||||||
Error += sizeof(glm::u64vec4) == 32 ? 0 : 1;
|
Error += sizeof(glm::u64vec4) == 32 ? 0 : 1;
|
||||||
|
|
||||||
return Error;
|
return Error;
|
||||||
|
@ -7,6 +7,144 @@
|
|||||||
# include <omp.h>
|
# include <omp.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if GLM_HAS_STATIC_ASSERT
|
||||||
|
static_assert(sizeof(glm::lowp_u8vec1) == 1, "uint8 size isn't 1 byte on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u8vec1) == 1, "uint8 size isn't 1 byte on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u8vec1) == 1, "uint8 size isn't 1 byte on this platform");
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u16vec1) == 2, "uint16 size isn't 2 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u16vec1) == 2, "uint16 size isn't 2 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u16vec1) == 2, "uint16 size isn't 2 bytes on this platform");
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u32vec1) == 4, "uint32 size isn't 4 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u32vec1) == 4, "uint32 size isn't 4 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u32vec1) == 4, "uint32 size isn't 4 bytes on this platform");
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u64vec1) == 8, "uint64 size isn't 8 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u64vec1) == 8, "uint64 size isn't 8 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u64vec1) == 8, "uint64 size isn't 8 bytes on this platform");
|
||||||
|
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u8vec2) == 2, "uint8 size isn't 1 byte on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u8vec2) == 2, "uint8 size isn't 1 byte on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u8vec2) == 2, "uint8 size isn't 1 byte on this platform");
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u16vec2) == 4, "uint16 size isn't 2 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u16vec2) == 4, "uint16 size isn't 2 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u16vec2) == 4, "uint16 size isn't 2 bytes on this platform");
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u32vec2) == 8, "uint32 size isn't 4 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u32vec2) == 8, "uint32 size isn't 4 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u32vec2) == 8, "uint32 size isn't 4 bytes on this platform");
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u64vec2) == 16, "uint64 size isn't 8 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u64vec2) == 16, "uint64 size isn't 8 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u64vec2) == 16, "uint64 size isn't 8 bytes on this platform");
|
||||||
|
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u8vec3) == 3, "uint8 size isn't 1 byte on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u8vec3) == 3, "uint8 size isn't 1 byte on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u8vec3) == 3, "uint8 size isn't 1 byte on this platform");
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u16vec3) == 6, "uint16 size isn't 2 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u16vec3) == 6, "uint16 size isn't 2 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u16vec3) == 6, "uint16 size isn't 2 bytes on this platform");
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u32vec3) == 12, "uint32 size isn't 4 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u32vec3) == 12, "uint32 size isn't 4 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u32vec3) == 12, "uint32 size isn't 4 bytes on this platform");
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u64vec3) == 24, "uint64 size isn't 8 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u64vec3) == 24, "uint64 size isn't 8 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u64vec3) == 24, "uint64 size isn't 8 bytes on this platform");
|
||||||
|
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u8vec4) == 4, "int8 size isn't 1 byte on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u8vec4) == 4, "int8 size isn't 1 byte on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u8vec4) == 4, "int8 size isn't 1 byte on this platform");
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u16vec4) == 8, "int16 size isn't 2 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u16vec4) == 8, "int16 size isn't 2 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u16vec4) == 8, "int16 size isn't 2 bytes on this platform");
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u32vec4) == 16, "int32 size isn't 4 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u32vec4) == 16, "int32 size isn't 4 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u32vec4) == 16, "int32 size isn't 4 bytes on this platform");
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u64vec4) == 32, "int64 size isn't 8 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u64vec4) == 32, "int64 size isn't 8 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u64vec4) == 32, "int64 size isn't 8 bytes on this platform");
|
||||||
|
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u8vec1) == 1, "uint8 size isn't 1 byte on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u8vec1) == 1, "uint8 size isn't 1 byte on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u8vec1) == 1, "uint8 size isn't 1 byte on this platform");
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u16vec1) == 2, "uint16 size isn't 2 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u16vec1) == 2, "uint16 size isn't 2 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u16vec1) == 2, "uint16 size isn't 2 bytes on this platform");
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u32vec1) == 4, "uint32 size isn't 4 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u32vec1) == 4, "uint32 size isn't 4 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u32vec1) == 4, "uint32 size isn't 4 bytes on this platform");
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u64vec1) == 8, "uint64 size isn't 8 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u64vec1) == 8, "uint64 size isn't 8 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u64vec1) == 8, "uint64 size isn't 8 bytes on this platform");
|
||||||
|
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u8vec2) == 2, "uint8 size isn't 1 byte on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u8vec2) == 2, "uint8 size isn't 1 byte on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u8vec2) == 2, "uint8 size isn't 1 byte on this platform");
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u16vec2) == 4, "uint16 size isn't 2 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u16vec2) == 4, "uint16 size isn't 2 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u16vec2) == 4, "uint16 size isn't 2 bytes on this platform");
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u32vec2) == 8, "uint32 size isn't 4 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u32vec2) == 8, "uint32 size isn't 4 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u32vec2) == 8, "uint32 size isn't 4 bytes on this platform");
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u64vec2) == 16, "uint64 size isn't 8 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u64vec2) == 16, "uint64 size isn't 8 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u64vec2) == 16, "uint64 size isn't 8 bytes on this platform");
|
||||||
|
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u8vec3) == 3, "uint8 size isn't 1 byte on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u8vec3) == 3, "uint8 size isn't 1 byte on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u8vec3) == 3, "uint8 size isn't 1 byte on this platform");
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u16vec3) == 6, "uint16 size isn't 2 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u16vec3) == 6, "uint16 size isn't 2 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u16vec3) == 6, "uint16 size isn't 2 bytes on this platform");
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u32vec3) == 12, "uint32 size isn't 4 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u32vec3) == 12, "uint32 size isn't 4 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u32vec3) == 12, "uint32 size isn't 4 bytes on this platform");
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u64vec3) == 24, "uint64 size isn't 8 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u64vec3) == 24, "uint64 size isn't 8 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u64vec3) == 24, "uint64 size isn't 8 bytes on this platform");
|
||||||
|
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u8vec4) == 4, "uint8 size isn't 1 byte on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u8vec4) == 4, "uint8 size isn't 1 byte on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u8vec4) == 4, "uint8 size isn't 1 byte on this platform");
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u16vec4) == 8, "uint16 size isn't 2 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u16vec4) == 8, "uint16 size isn't 2 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u16vec4) == 8, "uint16 size isn't 2 bytes on this platform");
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u32vec4) == 16, "uint32 size isn't 4 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u32vec4) == 16, "uint32 size isn't 4 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u32vec4) == 16, "uint32 size isn't 4 bytes on this platform");
|
||||||
|
|
||||||
|
static_assert(sizeof(glm::lowp_u64vec4) == 32, "uint64 size isn't 8 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::mediump_u64vec4) == 32, "uint64 size isn't 8 bytes on this platform");
|
||||||
|
static_assert(sizeof(glm::highp_u64vec4) == 32, "uint64 size isn't 8 bytes on this platform");
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
static int test_scalar_size()
|
static int test_scalar_size()
|
||||||
{
|
{
|
||||||
int Error = 0;
|
int Error = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user