gtc/type_aligned.hpp
Go to the documentation of this file.
#pragma once
#if !GLM_HAS_ALIGNED_TYPE
# error "GLM: Aligned types are not supported on this platform"
#endif
#if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
# pragma message("GLM: GLM_GTC_type_aligned extension included")
#endif
#include "../vec2.hpp"
#include "../vec3.hpp"
#include "../vec4.hpp"
#include "../gtc/vec1.hpp"
namespace glm
{
template <typename T, precision P> struct tvec1;
template <typename T, precision P> struct tvec2;
template <typename T, precision P> struct tvec3;
template <typename T, precision P> struct tvec4;
// -- *vec1 --
typedef tvec1<float, aligned_highp> aligned_highp_vec1;
typedef tvec1<float, aligned_mediump> aligned_mediump_vec1;
typedef tvec1<float, aligned_lowp> aligned_lowp_vec1;
typedef tvec1<double, aligned_highp> aligned_highp_dvec1;
typedef tvec1<double, aligned_mediump> aligned_mediump_dvec1;
typedef tvec1<double, aligned_lowp> aligned_lowp_dvec1;
typedef tvec1<int, aligned_highp> aligned_highp_ivec1;
typedef tvec1<int, aligned_mediump> aligned_mediump_ivec1;
typedef tvec1<int, aligned_lowp> aligned_lowp_ivec1;
typedef tvec1<uint, aligned_highp> aligned_highp_uvec1;
typedef tvec1<uint, aligned_mediump> aligned_mediump_uvec1;
typedef tvec1<uint, aligned_lowp> aligned_lowp_uvec1;
typedef tvec1<bool, aligned_highp> aligned_highp_bvec1;
typedef tvec1<bool, aligned_mediump> aligned_mediump_bvec1;
typedef tvec1<bool, aligned_lowp> aligned_lowp_bvec1;
typedef tvec1<float, packed_highp> packed_highp_vec1;
typedef tvec1<float, packed_mediump> packed_mediump_vec1;
typedef tvec1<float, packed_lowp> packed_lowp_vec1;
typedef tvec1<double, packed_highp> packed_highp_dvec1;
typedef tvec1<double, packed_mediump> packed_mediump_dvec1;
typedef tvec1<double, packed_lowp> packed_lowp_dvec1;
typedef tvec1<int, packed_highp> packed_highp_ivec1;
typedef tvec1<int, packed_mediump> packed_mediump_ivec1;
typedef tvec1<int, packed_lowp> packed_lowp_ivec1;
typedef tvec1<uint, packed_highp> packed_highp_uvec1;
typedef tvec1<uint, packed_mediump> packed_mediump_uvec1;
typedef tvec1<uint, packed_lowp> packed_lowp_uvec1;
typedef tvec1<bool, packed_highp> packed_highp_bvec1;
typedef tvec1<bool, packed_mediump> packed_mediump_bvec1;
typedef tvec1<bool, packed_lowp> packed_lowp_bvec1;
// -- *vec2 --
typedef tvec2<float, aligned_highp> aligned_highp_vec2;
typedef tvec2<float, aligned_mediump> aligned_mediump_vec2;
typedef tvec2<float, aligned_lowp> aligned_lowp_vec2;
typedef tvec2<double, aligned_highp> aligned_highp_dvec2;
typedef tvec2<double, aligned_mediump> aligned_mediump_dvec2;
typedef tvec2<double, aligned_lowp> aligned_lowp_dvec2;
typedef tvec2<int, aligned_highp> aligned_highp_ivec2;
typedef tvec2<int, aligned_mediump> aligned_mediump_ivec2;
typedef tvec2<int, aligned_lowp> aligned_lowp_ivec2;
typedef tvec2<uint, aligned_highp> aligned_highp_uvec2;
typedef tvec2<uint, aligned_mediump> aligned_mediump_uvec2;
typedef tvec2<uint, aligned_lowp> aligned_lowp_uvec2;
typedef tvec2<bool, aligned_highp> aligned_highp_bvec2;
typedef tvec2<bool, aligned_mediump> aligned_mediump_bvec2;
typedef tvec2<bool, aligned_lowp> aligned_lowp_bvec2;
// -- *vec3 --
typedef tvec3<float, aligned_highp> aligned_highp_vec3;
typedef tvec3<float, aligned_mediump> aligned_mediump_vec3;
typedef tvec3<float, aligned_lowp> aligned_lowp_vec3;
typedef tvec3<double, aligned_highp> aligned_highp_dvec3;
typedef tvec3<double, aligned_mediump> aligned_mediump_dvec3;
typedef tvec3<double, aligned_lowp> aligned_lowp_dvec3;
typedef tvec3<int, aligned_highp> aligned_highp_ivec3;
typedef tvec3<int, aligned_mediump> aligned_mediump_ivec3;
typedef tvec3<int, aligned_lowp> aligned_lowp_ivec3;
typedef tvec3<uint, aligned_highp> aligned_highp_uvec3;
typedef tvec3<uint, aligned_mediump> aligned_mediump_uvec3;
typedef tvec3<uint, aligned_lowp> aligned_lowp_uvec3;
typedef tvec3<bool, aligned_highp> aligned_highp_bvec3;
typedef tvec3<bool, aligned_mediump> aligned_mediump_bvec3;
typedef tvec3<bool, aligned_lowp> aligned_lowp_bvec3;
// -- *vec4 --
typedef tvec4<float, aligned_highp> aligned_highp_vec4;
typedef tvec4<float, aligned_mediump> aligned_mediump_vec4;
typedef tvec4<float, aligned_lowp> aligned_lowp_vec4;
typedef tvec4<double, aligned_highp> aligned_highp_dvec4;
typedef tvec4<double, aligned_mediump> aligned_mediump_dvec4;
typedef tvec4<double, aligned_lowp> aligned_lowp_dvec4;
typedef tvec4<int, aligned_highp> aligned_highp_ivec4;
typedef tvec4<int, aligned_mediump> aligned_mediump_ivec4;
typedef tvec4<int, aligned_lowp> aligned_lowp_ivec4;
typedef tvec4<uint, aligned_highp> aligned_highp_uvec4;
typedef tvec4<uint, aligned_mediump> aligned_mediump_uvec4;
typedef tvec4<uint, aligned_lowp> aligned_lowp_uvec4;
typedef tvec4<bool, aligned_highp> aligned_highp_bvec4;
typedef tvec4<bool, aligned_mediump> aligned_mediump_bvec4;
typedef tvec4<bool, aligned_lowp> aligned_lowp_bvec4;
// -- default --
#if(defined(GLM_PRECISION_LOWP_FLOAT))
typedef aligned_lowp_vec1 aligned_vec1;
typedef aligned_lowp_vec2 aligned_vec2;
typedef aligned_lowp_vec3 aligned_vec3;
typedef aligned_lowp_vec4 aligned_vec4;
#elif(defined(GLM_PRECISION_MEDIUMP_FLOAT))
typedef aligned_mediump_vec1 aligned_vec1;
typedef aligned_mediump_vec2 aligned_vec2;
typedef aligned_mediump_vec3 aligned_vec3;
typedef aligned_mediump_vec4 aligned_vec4;
#else //defined(GLM_PRECISION_HIGHP_FLOAT)
typedef aligned_highp_vec1 aligned_vec1;
typedef aligned_highp_vec2 aligned_vec2;
typedef aligned_highp_vec3 aligned_vec3;
typedef aligned_highp_vec4 aligned_vec4;
#endif//GLM_PRECISION
#if(defined(GLM_PRECISION_LOWP_DOUBLE))
typedef aligned_lowp_dvec1 aligned_dvec1;
typedef aligned_lowp_dvec2 aligned_dvec2;
typedef aligned_lowp_dvec3 aligned_dvec3;
typedef aligned_lowp_dvec4 aligned_dvec4;
#elif(defined(GLM_PRECISION_MEDIUMP_DOUBLE))
typedef aligned_mediump_dvec1 aligned_dvec1;
typedef aligned_mediump_dvec2 aligned_dvec2;
typedef aligned_mediump_dvec3 aligned_dvec3;
typedef aligned_mediump_dvec4 aligned_dvec4;
#else //defined(GLM_PRECISION_HIGHP_DOUBLE)
typedef aligned_highp_dvec1 aligned_dvec1;
typedef aligned_highp_dvec2 aligned_dvec2;
typedef aligned_highp_dvec3 aligned_dvec3;
typedef aligned_highp_dvec4 aligned_dvec4;
#endif//GLM_PRECISION
#if(defined(GLM_PRECISION_LOWP_INT))
typedef aligned_lowp_ivec1 aligned_ivec1;
typedef aligned_lowp_ivec2 aligned_ivec2;
typedef aligned_lowp_ivec3 aligned_ivec3;
typedef aligned_lowp_ivec4 aligned_ivec4;
#elif(defined(GLM_PRECISION_MEDIUMP_INT))
typedef aligned_mediump_ivec1 aligned_ivec1;
typedef aligned_mediump_ivec2 aligned_ivec2;
typedef aligned_mediump_ivec3 aligned_ivec3;
typedef aligned_mediump_ivec4 aligned_ivec4;
#else //defined(GLM_PRECISION_HIGHP_INT)
typedef aligned_highp_ivec1 aligned_ivec1;
typedef aligned_highp_ivec2 aligned_ivec2;
typedef aligned_highp_ivec3 aligned_ivec3;
typedef aligned_highp_ivec4 aligned_ivec4;
#endif//GLM_PRECISION
// -- Unsigned integer definition --
#if(defined(GLM_PRECISION_LOWP_UINT))
typedef aligned_lowp_uvec1 aligned_uvec1;
typedef aligned_lowp_uvec2 aligned_uvec2;
typedef aligned_lowp_uvec3 aligned_uvec3;
typedef aligned_lowp_uvec4 aligned_uvec4;
#elif(defined(GLM_PRECISION_MEDIUMP_UINT))
typedef aligned_mediump_uvec1 aligned_uvec1;
typedef aligned_mediump_uvec2 aligned_uvec2;
typedef aligned_mediump_uvec3 aligned_uvec3;
typedef aligned_mediump_uvec4 aligned_uvec4;
#else //defined(GLM_PRECISION_HIGHP_UINT)
typedef aligned_highp_uvec1 aligned_uvec1;
typedef aligned_highp_uvec2 aligned_uvec2;
typedef aligned_highp_uvec3 aligned_uvec3;
typedef aligned_highp_uvec4 aligned_uvec4;
#endif//GLM_PRECISION
#if(defined(GLM_PRECISION_LOWP_BOOL))
typedef aligned_lowp_bvec1 aligned_bvec1;
typedef aligned_lowp_bvec2 aligned_bvec2;
typedef aligned_lowp_bvec3 aligned_bvec3;
typedef aligned_lowp_bvec4 aligned_bvec4;
#elif(defined(GLM_PRECISION_MEDIUMP_BOOL))
typedef aligned_mediump_bvec1 aligned_bvec1;
typedef aligned_mediump_bvec2 aligned_bvec2;
typedef aligned_mediump_bvec3 aligned_bvec3;
typedef aligned_mediump_bvec4 aligned_bvec4;
#else //defined(GLM_PRECISION_HIGHP_BOOL)
typedef aligned_highp_bvec1 aligned_bvec1;
typedef aligned_highp_bvec2 aligned_bvec2;
typedef aligned_highp_bvec3 aligned_bvec3;
typedef aligned_highp_bvec4 aligned_bvec4;
#endif//GLM_PRECISION
}//namespace glm
glm::aligned_bvec2
aligned_highp_bvec2 aligned_bvec2
2 components vector of boolean.
Definition: gtc/type_aligned.hpp:352
glm::aligned_mediump_dvec2
tvec2< double, aligned_mediump > aligned_mediump_dvec2
2 components vector of medium double-precision floating-point numbers.
Definition: gtc/type_aligned.hpp:89
glm::aligned_highp_bvec4
tvec4< bool, aligned_highp > aligned_highp_bvec4
4 components vector of high precision bool numbers.
Definition: gtc/type_aligned.hpp:229
glm::aligned_highp_uvec3
tvec3< uint, aligned_highp > aligned_highp_uvec3
3 components vector of high precision unsigned integer numbers.
Definition: gtc/type_aligned.hpp:171
glm::aligned_dvec4
aligned_highp_dvec4 aligned_dvec4
4 components vector of double-precision floating-point numbers.
Definition: gtc/type_aligned.hpp:284
glm::aligned_dvec1
aligned_highp_dvec1 aligned_dvec1
1 component vector of double-precision floating-point numbers.
Definition: gtc/type_aligned.hpp:275
glm::aligned_lowp_ivec3
tvec3< int, aligned_lowp > aligned_lowp_ivec3
3 components vector of low precision signed integer numbers.
Definition: gtc/type_aligned.hpp:167
glm::aligned_mediump_dvec3
tvec3< double, aligned_mediump > aligned_mediump_dvec3
3 components vector of medium double-precision floating-point numbers.
Definition: gtc/type_aligned.hpp:151
glm::aligned_lowp_vec3
tvec3< float, aligned_lowp > aligned_lowp_vec3
3 components vector of low single-precision floating-point numbers.
Definition: gtc/type_aligned.hpp:143
glm::aligned_lowp_bvec2
tvec2< bool, aligned_lowp > aligned_lowp_bvec2
2 components vector of low precision bool numbers.
Definition: gtc/type_aligned.hpp:129
glm::aligned_mediump_uvec3
tvec3< uint, aligned_mediump > aligned_mediump_uvec3
3 components vector of medium precision unsigned integer numbers.
Definition: gtc/type_aligned.hpp:175
glm::aligned_lowp_vec4
tvec4< float, aligned_lowp > aligned_lowp_vec4
4 components vector of low single-precision floating-point numbers.
Definition: gtc/type_aligned.hpp:199
glm::aligned_mediump_dvec4
tvec4< double, aligned_mediump > aligned_mediump_dvec4
4 components vector of medium double-precision floating-point numbers.
Definition: gtc/type_aligned.hpp:205
glm::aligned_mediump_uvec2
tvec2< uint, aligned_mediump > aligned_mediump_uvec2
2 components vector of medium precision unsigned integer numbers.
Definition: gtc/type_aligned.hpp:113
glm::aligned_mediump_ivec2
tvec2< int, aligned_mediump > aligned_mediump_ivec2
2 components vector of medium precision signed integer numbers.
Definition: gtc/type_aligned.hpp:101
glm::aligned_mediump_uvec4
tvec4< uint, aligned_mediump > aligned_mediump_uvec4
4 components vector of medium precision unsigned integer numbers.
Definition: gtc/type_aligned.hpp:223
glm::aligned_bvec4
aligned_highp_bvec4 aligned_bvec4
4 components vector of boolean.
Definition: gtc/type_aligned.hpp:358
glm::aligned_highp_bvec2
tvec2< bool, aligned_highp > aligned_highp_bvec2
2 components vector of high precision bool numbers.
Definition: gtc/type_aligned.hpp:121
glm::aligned_ivec1
aligned_highp_ivec1 aligned_ivec1
1 component vector of signed integer numbers.
Definition: gtc/type_aligned.hpp:299
glm::aligned_lowp_uvec3
tvec3< uint, aligned_lowp > aligned_lowp_uvec3
3 components vector of low precision unsigned integer numbers.
Definition: gtc/type_aligned.hpp:179
glm::aligned_lowp_bvec4
tvec4< bool, aligned_lowp > aligned_lowp_bvec4
4 components vector of low precision bool numbers.
Definition: gtc/type_aligned.hpp:235
glm::aligned_dvec3
aligned_highp_dvec3 aligned_dvec3
3 components vector of double-precision floating-point numbers.
Definition: gtc/type_aligned.hpp:281
glm::aligned_vec2
aligned_highp_vec2 aligned_vec2
2 components vector of floating-point numbers.
Definition: gtc/type_aligned.hpp:254
glm::aligned_bvec3
aligned_highp_bvec3 aligned_bvec3
3 components vector of boolean.
Definition: gtc/type_aligned.hpp:355
glm::aligned_lowp_dvec2
tvec2< double, aligned_lowp > aligned_lowp_dvec2
2 components vector of low double-precision floating-point numbers.
Definition: gtc/type_aligned.hpp:93
glm::aligned_highp_dvec3
tvec3< double, aligned_highp > aligned_highp_dvec3
3 components vector of high double-precision floating-point numbers.
Definition: gtc/type_aligned.hpp:147
glm::aligned_uvec4
aligned_highp_uvec4 aligned_uvec4
4 components vector of unsigned integer numbers.
Definition: gtc/type_aligned.hpp:334
glm::aligned_highp_ivec3
tvec3< int, aligned_highp > aligned_highp_ivec3
3 components vector of high precision signed integer numbers.
Definition: gtc/type_aligned.hpp:159
glm::aligned_highp_uvec4
tvec4< uint, aligned_highp > aligned_highp_uvec4
4 components vector of high precision unsigned integer numbers.
Definition: gtc/type_aligned.hpp:220
glm::aligned_lowp_uvec2
tvec2< uint, aligned_lowp > aligned_lowp_uvec2
2 components vector of low precision unsigned integer numbers.
Definition: gtc/type_aligned.hpp:117
glm::aligned_mediump_ivec3
tvec3< int, aligned_mediump > aligned_mediump_ivec3
3 components vector of medium precision signed integer numbers.
Definition: gtc/type_aligned.hpp:163
glm::aligned_lowp_vec2
tvec2< float, aligned_lowp > aligned_lowp_vec2
2 components vector of low single-precision floating-point numbers.
Definition: gtc/type_aligned.hpp:81
glm::aligned_uvec3
aligned_highp_uvec3 aligned_uvec3
3 components vector of unsigned integer numbers.
Definition: gtc/type_aligned.hpp:331
glm::aligned_highp_vec4
tvec4< float, aligned_highp > aligned_highp_vec4
4 components vector of high single-precision floating-point numbers.
Definition: gtc/type_aligned.hpp:193
glm::aligned_mediump_vec4
tvec4< float, aligned_mediump > aligned_mediump_vec4
4 components vector of medium single-precision floating-point numbers.
Definition: gtc/type_aligned.hpp:196
glm::aligned_highp_uvec2
tvec2< uint, aligned_highp > aligned_highp_uvec2
2 components vector of high precision unsigned integer numbers.
Definition: gtc/type_aligned.hpp:109
glm::aligned_lowp_bvec3
tvec3< bool, aligned_lowp > aligned_lowp_bvec3
3 components vector of low precision bool numbers.
Definition: gtc/type_aligned.hpp:188
glm::aligned_bvec1
aligned_highp_bvec1 aligned_bvec1
1 component vector of boolean.
Definition: gtc/type_aligned.hpp:349
glm
Definition: _noise.hpp:11
glm::aligned_highp_vec3
tvec3< float, aligned_highp > aligned_highp_vec3
3 components vector of high single-precision floating-point numbers.
Definition: gtc/type_aligned.hpp:135
glm::aligned_highp_dvec4
tvec4< double, aligned_highp > aligned_highp_dvec4
4 components vector of high double-precision floating-point numbers.
Definition: gtc/type_aligned.hpp:202
glm::aligned_uvec1
aligned_highp_uvec1 aligned_uvec1
1 component vector of unsigned integer numbers.
Definition: gtc/type_aligned.hpp:325
glm::aligned_highp_vec2
tvec2< float, aligned_highp > aligned_highp_vec2
2 components vector of high single-precision floating-point numbers.
Definition: gtc/type_aligned.hpp:73
glm::aligned_mediump_vec3
tvec3< float, aligned_mediump > aligned_mediump_vec3
3 components vector of medium single-precision floating-point numbers.
Definition: gtc/type_aligned.hpp:139
glm::aligned_vec4
aligned_highp_vec4 aligned_vec4
4 components vector of floating-point numbers.
Definition: gtc/type_aligned.hpp:260
glm::aligned_mediump_bvec3
tvec3< bool, aligned_mediump > aligned_mediump_bvec3
3 components vector of medium precision bool numbers.
Definition: gtc/type_aligned.hpp:185
glm::aligned_mediump_bvec4
tvec4< bool, aligned_mediump > aligned_mediump_bvec4
4 components vector of medium precision bool numbers.
Definition: gtc/type_aligned.hpp:232
glm::aligned_mediump_vec2
tvec2< float, aligned_mediump > aligned_mediump_vec2
2 components vector of medium single-precision floating-point numbers.
Definition: gtc/type_aligned.hpp:77
glm::aligned_ivec4
aligned_highp_ivec4 aligned_ivec4
4 components vector of signed integer numbers.
Definition: gtc/type_aligned.hpp:308
glm::aligned_mediump_bvec2
tvec2< bool, aligned_mediump > aligned_mediump_bvec2
2 components vector of medium precision bool numbers.
Definition: gtc/type_aligned.hpp:125
glm::aligned_lowp_dvec3
tvec3< double, aligned_lowp > aligned_lowp_dvec3
3 components vector of low double-precision floating-point numbers.
Definition: gtc/type_aligned.hpp:155
glm::aligned_lowp_uvec4
tvec4< uint, aligned_lowp > aligned_lowp_uvec4
4 components vector of low precision unsigned integer numbers.
Definition: gtc/type_aligned.hpp:226
glm::aligned_highp_ivec2
tvec2< int, aligned_highp > aligned_highp_ivec2
2 components vector of high precision signed integer numbers.
Definition: gtc/type_aligned.hpp:97
glm::aligned_dvec2
aligned_highp_dvec2 aligned_dvec2
2 components vector of double-precision floating-point numbers.
Definition: gtc/type_aligned.hpp:278
glm::aligned_uvec2
aligned_highp_uvec2 aligned_uvec2
2 components vector of unsigned integer numbers.
Definition: gtc/type_aligned.hpp:328
glm::aligned_lowp_ivec4
tvec4< int, aligned_lowp > aligned_lowp_ivec4
4 components vector of low precision signed integer numbers.
Definition: gtc/type_aligned.hpp:217
glm::aligned_lowp_ivec2
tvec2< int, aligned_lowp > aligned_lowp_ivec2
2 components vector of low precision signed integer numbers.
Definition: gtc/type_aligned.hpp:105
glm::aligned_vec1
aligned_highp_vec1 aligned_vec1
1 component vector of floating-point numbers.
Definition: gtc/type_aligned.hpp:251
glm::aligned_lowp_dvec4
tvec4< double, aligned_lowp > aligned_lowp_dvec4
4 components vector of low double-precision floating-point numbers.
Definition: gtc/type_aligned.hpp:208
glm::aligned_mediump_ivec4
tvec4< int, aligned_mediump > aligned_mediump_ivec4
4 components vector of medium precision signed integer numbers.
Definition: gtc/type_aligned.hpp:214
glm::aligned_highp_bvec3
tvec3< bool, aligned_highp > aligned_highp_bvec3
3 components vector of high precision bool numbers.
Definition: gtc/type_aligned.hpp:182
glm::aligned_ivec2
aligned_highp_ivec2 aligned_ivec2
2 components vector of signed integer numbers.
Definition: gtc/type_aligned.hpp:302
glm::aligned_highp_ivec4
tvec4< int, aligned_highp > aligned_highp_ivec4
4 components vector of high precision signed integer numbers.
Definition: gtc/type_aligned.hpp:211
glm::aligned_ivec3
aligned_highp_ivec3 aligned_ivec3
3 components vector of signed integer numbers.
Definition: gtc/type_aligned.hpp:305
glm::aligned_highp_dvec2
tvec2< double, aligned_highp > aligned_highp_dvec2
2 components vector of high double-precision floating-point numbers.
Definition: gtc/type_aligned.hpp:85
glm::aligned_vec3
aligned_highp_vec3 aligned_vec3
3 components vector of floating-point numbers.
Definition: gtc/type_aligned.hpp:257