Home
last modified time | relevance | path

Searched refs:glm (Results 1 – 25 of 233) sorted by relevance

12345678910

/external/vulkan-validation-layers/libs/glm/detail/
Ddummy.cpp39 glm::vec4 emission; // Ecm
40 glm::vec4 ambient; // Acm
41 glm::vec4 diffuse; // Dcm
42 glm::vec4 specular; // Scm
48 glm::vec4 ambient; // Acli
49 glm::vec4 diffuse; // Dcli
50 glm::vec4 specular; // Scli
51 glm::vec4 position; // Ppli
52 glm::vec4 halfVector; // Derived: Hi
53 glm::vec3 spotDirection; // Sdli
[all …]
Dintrinsic_integer.inl2 /// OpenGL Mathematics (glm.g-truc.net)
24 /// @file glm/core/intrinsic_integer.inl
29 namespace glm{ namespace
48 //REG1 = ((REG1 << 16) | REG1) & glm::uint64(0x0000FFFF0000FFFF);
49 //REG2 = ((REG2 << 16) | REG2) & glm::uint64(0x0000FFFF0000FFFF);
54 //REG1 = ((REG1 << 8) | REG1) & glm::uint64(0x00FF00FF00FF00FF);
55 //REG2 = ((REG2 << 8) | REG2) & glm::uint64(0x00FF00FF00FF00FF);
60 //REG1 = ((REG1 << 4) | REG1) & glm::uint64(0x0F0F0F0F0F0F0F0F);
61 //REG2 = ((REG2 << 4) | REG2) & glm::uint64(0x0F0F0F0F0F0F0F0F);
66 //REG1 = ((REG1 << 2) | REG1) & glm::uint64(0x3333333333333333);
[all …]
Dtype_int.hpp38 namespace glm{ namespace
178 GLM_STATIC_ASSERT(sizeof(glm::int8) == 1, "int8 size isn't 1 byte on this platform");
179 GLM_STATIC_ASSERT(sizeof(glm::int16) == 2, "int16 size isn't 2 bytes on this platform");
180 GLM_STATIC_ASSERT(sizeof(glm::int32) == 4, "int32 size isn't 4 bytes on this platform");
181 GLM_STATIC_ASSERT(sizeof(glm::int64) == 8, "int64 size isn't 8 bytes on this platform");
183 GLM_STATIC_ASSERT(sizeof(glm::uint8) == 1, "uint8 size isn't 1 byte on this platform");
184 GLM_STATIC_ASSERT(sizeof(glm::uint16) == 2, "uint16 size isn't 2 bytes on this platform");
185 GLM_STATIC_ASSERT(sizeof(glm::uint32) == 4, "uint32 size isn't 4 bytes on this platform");
186 GLM_STATIC_ASSERT(sizeof(glm::uint64) == 8, "uint64 size isn't 8 bytes on this platform");
Dintrinsic_geometric.inl2 /// OpenGL Mathematics (glm.g-truc.net)
24 /// @file glm/core/intrinsic_geometric.inl
29 namespace glm{ namespace
107 __m128 mul0 = _mm_mul_ps(sgn0, glm::detail::minus_one);
117 __m128 mul1 = _mm_mul_ps(mul0, glm::detail::two);
128 __m128 sub0 = _mm_sub_ps(glm::detail::one, mul0);
129 __m128 sub1 = _mm_sub_ps(glm::detail::one, mul1);
132 if(_mm_movemask_ps(_mm_cmplt_ss(mul2, glm::detail::zero)) == 0)
133 return glm::detail::zero;
146 }//namespace glm
Dintrinsic_common.inl2 /// OpenGL Mathematics (glm.g-truc.net)
24 /// @file glm/core/intrinsic_common.inl
29 namespace glm{ namespace
156 return _mm_and_ps(glm::detail::abs4Mask, x);
178 __m128 and0 = _mm_and_ps(cmp0, glm::detail::_ps_1);
193 __m128 and0 = _mm_and_ps(glm::detail::_epi32_sign_mask, x);
194 __m128 or0 = _mm_or_ps(and0, glm::detail::_ps_2pow23);
203 __m128 and0 = _mm_and_ps(glm::detail::_epi32_sign_mask, x);
204 __m128 or0 = _mm_or_ps(and0, glm::detail::_ps_2pow23);
214 __m128 and0 = _mm_and_ps(cmp0, glm::detail::_ps_1);
[all …]
Dtype_float.hpp34 namespace glm{ namespace
87 GLM_STATIC_ASSERT(sizeof(glm::float32) == 4, "float32 size isn't 4 bytes on this platform");
88 GLM_STATIC_ASSERT(sizeof(glm::float64) == 8, "float64 size isn't 8 bytes on this platform");
/external/vulkan-validation-layers/libs/glm/gtx/
Dbit.inl7 // File : glm/gtx/bit.inl
13 namespace glm namespace
361 GLM_FUNC_QUALIFIER glm::uint16 bitfieldInterleave(glm::uint8 x, glm::uint8 y)
363 glm::uint16 REG1(x);
364 glm::uint16 REG2(y);
366 REG1 = ((REG1 << 4) | REG1) & glm::uint16(0x0F0F);
367 REG2 = ((REG2 << 4) | REG2) & glm::uint16(0x0F0F);
369 REG1 = ((REG1 << 2) | REG1) & glm::uint16(0x3333);
370 REG2 = ((REG2 << 2) | REG2) & glm::uint16(0x3333);
372 REG1 = ((REG1 << 1) | REG1) & glm::uint16(0x5555);
[all …]
Dnormalize_dot.inl7 // File : glm/gtx/normalize_dot.inl
10 namespace glm namespace
20 glm::dot(x, y) *
21 glm::inversesqrt(glm::dot(x, x) *
22 glm::dot(y, y));
33 glm::dot(x, y) *
34 glm::inversesqrt(glm::dot(x, x) *
35 glm::dot(y, y));
46 glm::dot(x, y) *
47 glm::inversesqrt(glm::dot(x, x) *
[all …]
Dextented_min_max.inl10 namespace glm namespace
18 return glm::min(glm::min(x, y), z);
29 return glm::min(glm::min(x, y), z);
40 return glm::min(glm::min(x, y), z);
52 return glm::min(glm::min(x, y), glm::min(z, w));
64 return glm::min(glm::min(x, y), glm::min(z, w));
76 return glm::min(glm::min(x, y), glm::min(z, w));
85 return glm::max(glm::max(x, y), z);
96 return glm::max(glm::max(x, y), z);
107 return glm::max(glm::max(x, y), z);
[all …]
Deuler_angles.inl7 // File : glm/gtx/euler_angles.inl
10 namespace glm namespace
18 T cosX = glm::cos(angleX);
19 T sinX = glm::sin(angleX);
34 T cosY = glm::cos(angleY);
35 T sinY = glm::sin(angleY);
50 T cosZ = glm::cos(angleZ);
51 T sinZ = glm::sin(angleZ);
67 T cosX = glm::cos(angleX);
68 T sinX = glm::sin(angleX);
[all …]
Dprojection.inl7 // File : glm/gtx/projection.inl
10 namespace glm namespace
19 return glm::dot(x, Normal) / glm::dot(Normal, Normal) * Normal;
21 }//namespace glm
Dlog_base.inl7 // File : glm/gtx/log_base.inl
10 namespace glm namespace
19 return glm::log(x) / glm::log(base);
24 }//namespace glm
Dsimd_quat.inl7 // File : glm/gtx/simd_quat.inl
11 namespace glm{ namespace
64 vec3 c = glm::cos(eulerAngles * 0.5f);
65 vec3 s = glm::sin(eulerAngles * 0.5f);
197 return glm::inverse(q) * v;
394 return glm::sqrt(dot(q, q));
426 if (cosTheta > 1.0f - glm::epsilon<float>())
432 float angle = glm::acos(cosTheta);
435 float s0 = glm::sin((1.0f - a) * angle);
436 float s1 = glm::sin(a * angle);
[all …]
Dintersect.inl7 // File : glm/gtx/intersect.inl
14 namespace glm namespace
24 typename genType::value_type d = glm::dot(dir, planeNormal);
29 intersectionDistance = glm::dot(planeOrig - orig, planeNormal) / d;
47 genType p = glm::cross(dir, e2);
49 typename genType::value_type a = glm::dot(e1, p);
58 baryPosition.x = f * glm::dot(s, p);
64 genType q = glm::cross(s, e1);
65 baryPosition.y = f * glm::dot(dir, q);
71 baryPosition.z = f * glm::dot(e2, q);
[all …]
Dunsigned_int.inl7 // File : glm/gtx/unsigned_int.inl
10 namespace glm namespace
13 }//namespace glm
Dperpendicular.inl7 // File : glm/gtx/perpendicular.inl
10 namespace glm namespace
21 }//namespace glm
Dmixed_product.inl7 // File : glm/gtx/mixed_product.inl
10 namespace glm namespace
22 }//namespace glm
Dnormal.inl7 // File : glm/gtx/normal.inl
10 namespace glm namespace
22 }//namespace glm
Dgradient_paint.inl7 // File : glm/gtx/gradient_paint.inl
10 namespace glm namespace
41 …return (Dist.x * (Position.x - Point0.x) + Dist.y * (Position.y - Point0.y)) / glm::dot(Dist, Dist…
43 }//namespace glm
Dwrap.inl7 // File : glm/gtx/wrap.inl
13 namespace glm namespace
21 return glm::clamp(Texcoord, genType(0), genType(1));
69 return glm::fract(Texcoord);
117 genType const Clamp = genType(int(glm::floor(Texcoord)) % 2);
118 genType const Floor = glm::floor(Texcoord);
165 }//namespace glm
Dhanded_coordinate_space.inl7 // File : glm/gtx/handed_coordinate_space.inl
10 namespace glm namespace
33 }//namespace glm
/external/vulkan-validation-layers/demos/smoke/
DSimulation.cpp85 glm::vec3 pick() in pick()
87 return glm::vec3{ red_(rng_), in pick()
110 current_.axis = glm::normalize(glm::vec3(x, y, z)); in Animation()
115 current_.matrix = glm::scale(glm::mat4(1.0f), glm::vec3(current_.scale)); in Animation()
118 glm::mat4 Animation::transformation(float t) in transformation()
120 current_.matrix = glm::rotate(current_.matrix, current_.speed * t, current_.axis); in transformation()
128 virtual glm::vec3 evaluate(float t) = 0;
148 glm::vec3 evaluate(float t) in evaluate()
163 segment_direction_ = glm::vec3(direction_(rng_), in new_segment()
179 glm::vec3 segment_start_;
[all …]
DSimulation.h38 glm::mat4 transformation(float t);
42 glm::vec3 axis;
46 glm::mat4 matrix;
62 glm::vec3 position(float t);
66 glm::vec3 origin;
89 glm::vec3 light_pos;
90 glm::vec3 light_color;
97 glm::mat4 model;
/external/vulkan-validation-layers/libs/glm/gtc/
Dpacking.inl2 /// OpenGL Mathematics (glm.g-truc.net)
24 /// @file glm/gtc/packing.inl
35 namespace glm{ namespace
38 GLM_FUNC_QUALIFIER glm::uint16 float2half(glm::uint32 const & f)
56 GLM_FUNC_QUALIFIER glm::uint32 float2packed11(glm::uint32 const & f)
74 GLM_FUNC_QUALIFIER glm::uint32 packed11ToFloat(glm::uint32 const & p)
92 GLM_FUNC_QUALIFIER glm::uint32 float2packed10(glm::uint32 const & f)
113 GLM_FUNC_QUALIFIER glm::uint32 packed10ToFloat(glm::uint32 const & p)
134 GLM_FUNC_QUALIFIER glm::uint half2float(glm::uint const & h)
139 GLM_FUNC_QUALIFIER glm::uint floatTo11bit(float x)
[all …]
Dreciprocal.inl2 /// OpenGL Mathematics (glm.g-truc.net)
24 /// @file glm/gtc/reciprocal.inl
32 namespace glm namespace
43 return genType(1) / glm::cos(angle);
57 return genType(1) / glm::sin(angle);
71 return genType(1) / glm::tan(angle);
128 return genType(1) / glm::cosh(angle);
142 return genType(1) / glm::sinh(angle);
156 return glm::cosh(angle) / glm::sinh(angle);
202 }//namespace glm

12345678910