Home
last modified time | relevance | path

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

1234567891011

/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtx/
Dhash.inl2 /// @file glm/gtx/hash.inl
9 /// @brief Add std::hash support for glm types
11 /// <glm/gtx/hash.inl> need to be included to use these functionalities.
13 namespace glm { namespace
25 template <typename T, glm::precision P>
26 GLM_FUNC_QUALIFIER size_t hash<glm::tvec1<T, P>>::operator()(glm::tvec1<T, P> const & v) const
32 template <typename T, glm::precision P>
33 GLM_FUNC_QUALIFIER size_t hash<glm::tvec2<T, P>>::operator()(glm::tvec2<T, P> const & v) const
37 glm::detail::hash_combine(seed, hasher(v.x));
38 glm::detail::hash_combine(seed, hasher(v.y));
[all …]
Dhash.hpp43 template <typename T, glm::precision P>
44 struct hash<glm::tvec1<T,P> >
46 GLM_FUNC_DECL size_t operator()(glm::tvec1<T, P> const & v) const;
49 template <typename T, glm::precision P>
50 struct hash<glm::tvec2<T,P> >
52 GLM_FUNC_DECL size_t operator()(glm::tvec2<T, P> const & v) const;
55 template <typename T, glm::precision P>
56 struct hash<glm::tvec3<T,P> >
58 GLM_FUNC_DECL size_t operator()(glm::tvec3<T, P> const & v) const;
61 template <typename T, glm::precision P>
[all …]
Dextended_min_max.inl2 /// @file glm/gtx/extended_min_max.inl
4 namespace glm namespace
12 return glm::min(glm::min(x, y), z);
23 return glm::min(glm::min(x, y), z);
34 return glm::min(glm::min(x, y), z);
46 return glm::min(glm::min(x, y), glm::min(z, w));
58 return glm::min(glm::min(x, y), glm::min(z, w));
70 return glm::min(glm::min(x, y), glm::min(z, w));
79 return glm::max(glm::max(x, y), z);
90 return glm::max(glm::max(x, y), z);
[all …]
Deuler_angles.inl2 /// @file glm/gtx/euler_angles.inl
4 #include "compatibility.hpp" // glm::atan2
6 namespace glm namespace
14 T cosX = glm::cos(angleX);
15 T sinX = glm::sin(angleX);
30 T cosY = glm::cos(angleY);
31 T sinY = glm::sin(angleY);
46 T cosZ = glm::cos(angleZ);
47 T sinZ = glm::sin(angleZ);
63 T cosX = glm::cos(angleX);
[all …]
Dnormalize_dot.inl2 /// @file glm/gtx/normalize_dot.inl
4 namespace glm namespace
9 return glm::dot(x, y) * glm::inversesqrt(glm::dot(x, x) * glm::dot(y, y));
15 return glm::dot(x, y) * glm::fastInverseSqrt(glm::dot(x, x) * glm::dot(y, y));
17 }//namespace glm
Dwrap.inl2 /// @file glm/gtx/wrap.inl
4 namespace glm namespace
9 return glm::clamp(Texcoord, vecType<T, P>(0), vecType<T, P>(1));
21 return glm::fract(Texcoord);
33 return glm::fract(glm::abs(Texcoord));
45 vecType<T, P> const Abs = glm::abs(Texcoord);
46 vecType<T, P> const Clamp = glm::mod(glm::floor(Abs), vecType<T, P>(2));
47 vecType<T, P> const Floor = glm::floor(Abs);
50 return mix(Rest, vecType<T, P>(1) - Rest, glm::greaterThanEqual(Mirror, vecType<T, P>(1)));
58 }//namespace glm
Dlog_base.inl2 /// @file glm/gtx/log_base.inl
4 namespace glm namespace
10 return glm::log(x) / glm::log(base);
16 return glm::log(x) / glm::log(base);
18 }//namespace glm
Dprojection.inl2 /// @file glm/gtx/projection.inl
4 namespace glm namespace
9 return glm::dot(x, Normal) / glm::dot(Normal, Normal) * Normal;
11 }//namespace glm
Dintersect.inl2 /// @file glm/gtx/intersect.inl
4 namespace glm namespace
14 typename genType::value_type d = glm::dot(dir, planeNormal);
19 intersectionDistance = glm::dot(planeOrig - orig, planeNormal) / d;
37 genType p = glm::cross(dir, e2);
39 typename genType::value_type a = glm::dot(e1, p);
48 baryPosition.x = f * glm::dot(s, p);
54 genType q = glm::cross(s, e1);
55 baryPosition.y = f * glm::dot(dir, q);
61 baryPosition.z = f * glm::dot(e2, q);
[all …]
Dsimd_quat.inl2 /// @file glm/gtx/simd_quat.inl
4 namespace glm{ namespace
59 vec3 c = glm::cos(eulerAngles * 0.5f);
60 vec3 s = glm::sin(eulerAngles * 0.5f);
194 return glm::inverse(q) * v;
391 return glm::sqrt(dot(q, q));
423 if (cosTheta > 1.0f - glm::epsilon<float>())
429 float angle = glm::acos(cosTheta);
432 float s0 = glm::sin((1.0f - a) * angle);
433 float s1 = glm::sin(a * angle);
[all …]
Dgradient_paint.inl2 /// @file glm/gtx/gradient_paint.inl
4 namespace glm namespace
35 …return (Dist.x * (Position.x - Point0.x) + Dist.y * (Position.y - Point0.y)) / glm::dot(Dist, Dist…
37 }//namespace glm
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtc/
Dbitfield.inl2 /// @file glm/gtc/bitfield.inl
6 namespace glm{ namespace
19 GLM_FUNC_QUALIFIER glm::uint16 bitfieldInterleave(glm::uint8 x, glm::uint8 y)
21 glm::uint16 REG1(x);
22 glm::uint16 REG2(y);
24 REG1 = ((REG1 << 4) | REG1) & glm::uint16(0x0F0F);
25 REG2 = ((REG2 << 4) | REG2) & glm::uint16(0x0F0F);
27 REG1 = ((REG1 << 2) | REG1) & glm::uint16(0x3333);
28 REG2 = ((REG2 << 2) | REG2) & glm::uint16(0x3333);
30 REG1 = ((REG1 << 1) | REG1) & glm::uint16(0x5555);
[all …]
Dpacking.inl2 /// @file glm/gtc/packing.inl
12 namespace glm{ namespace
15 GLM_FUNC_QUALIFIER glm::uint16 float2half(glm::uint32 f)
33 GLM_FUNC_QUALIFIER glm::uint32 float2packed11(glm::uint32 f)
51 GLM_FUNC_QUALIFIER glm::uint32 packed11ToFloat(glm::uint32 p)
69 GLM_FUNC_QUALIFIER glm::uint32 float2packed10(glm::uint32 f)
90 GLM_FUNC_QUALIFIER glm::uint32 packed10ToFloat(glm::uint32 p)
111 GLM_FUNC_QUALIFIER glm::uint half2float(glm::uint h)
116 GLM_FUNC_QUALIFIER glm::uint floatTo11bit(float x)
120 else if(glm::isnan(x))
[all …]
Dreciprocal.inl2 /// @file glm/gtc/reciprocal.inl
7 namespace glm namespace
14 return genType(1) / glm::cos(angle);
29 return genType(1) / glm::sin(angle);
46 return glm::tan(pi_over_2 - angle);
108 return genType(1) / glm::cosh(angle);
123 return genType(1) / glm::sinh(angle);
138 return glm::cosh(angle) / glm::sinh(angle);
192 }//namespace glm
/third_party/skia/third_party/externals/spirv-cross/include/spirv_cross/
Dsampler.hpp46 inline virtual T sample(glm::vec2 uv, float bias) in sample()
51 inline virtual T sampleLod(glm::vec2 uv, float lod) in sampleLod()
57 glm::vec2 uv_full = uv * glm::vec2(mips[0].width, mips[0].height); in sampleLod()
74 return v - glm::floor(v); in wrap()
78 return glm::clamp(v, half, 1.0f - half); in wrap()
95 typedef sampler2DBase<glm::vec4> sampler2D;
96 typedef sampler2DBase<glm::ivec4> isampler2D;
97 typedef sampler2DBase<glm::uvec4> usampler2D;
100 inline T texture(const sampler2DBase<T> &samp, const glm::vec2 &uv, float bias = 0.0f) in texture()
Dimage.hpp37 inline virtual T load(glm::ivec2 coord) const in load()
41 inline virtual void store(glm::ivec2 coord, const T &v) in store()
46 typedef image2DBase<glm::vec4> image2D;
47 typedef image2DBase<glm::ivec4> iimage2D;
48 typedef image2DBase<glm::uvec4> uimage2D;
51 inline T imageLoad(const image2DBase<T> &image, glm::ivec2 coord) in imageLoad()
57 void imageStore(image2DBase<T> &image, glm::ivec2 coord, const T &value) in imageStore()
/third_party/skia/third_party/externals/dawn/examples/
DCubeReflection.cpp91 glm::mat4 view;
92 glm::mat4 proj;
169 glm::mat4 transform(1.0); in init()
170 transformBuffer[0] = utils::CreateBufferFromData(device, &transform, sizeof(glm::mat4), in init()
173 transform = glm::translate(transform, glm::vec3(0.f, -2.f, 0.f)); in init()
174 transformBuffer[1] = utils::CreateBufferFromData(device, &transform, sizeof(glm::mat4), in init()
179 {{0, cameraBuffer, 0, sizeof(CameraData)}, {1, transformBuffer[0], 0, sizeof(glm::mat4)}}); in init()
183 {{0, cameraBuffer, 0, sizeof(CameraData)}, {1, transformBuffer[1], 0, sizeof(glm::mat4)}}); in init()
246 cameraData.proj = glm::perspective(glm::radians(45.0f), 1.f, 1.0f, 100.0f); in init()
260 cameraData.view = glm::lookAt(glm::vec3(8.f * std::sin(glm::radians(s.b * 360.f)), 2.f, in frame()
[all …]
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/detail/
Dtype_int.hpp15 namespace glm{ namespace
295 GLM_STATIC_ASSERT(sizeof(glm::int8) == 1, "int8 size isn't 1 byte on this platform");
296 GLM_STATIC_ASSERT(sizeof(glm::int16) == 2, "int16 size isn't 2 bytes on this platform");
297 GLM_STATIC_ASSERT(sizeof(glm::int32) == 4, "int32 size isn't 4 bytes on this platform");
298 GLM_STATIC_ASSERT(sizeof(glm::int64) == 8, "int64 size isn't 8 bytes on this platform");
300 GLM_STATIC_ASSERT(sizeof(glm::uint8) == 1, "uint8 size isn't 1 byte on this platform");
301 GLM_STATIC_ASSERT(sizeof(glm::uint16) == 2, "uint16 size isn't 2 bytes on this platform");
302 GLM_STATIC_ASSERT(sizeof(glm::uint32) == 4, "uint32 size isn't 4 bytes on this platform");
303 GLM_STATIC_ASSERT(sizeof(glm::uint64) == 8, "uint64 size isn't 8 bytes on this platform");
Dfunc_integer.inl2 /// @file glm/detail/func_integer.inl
24 namespace glm{ namespace
33 …template <typename T, glm::precision P, template <typename, glm::precision> class vecType, bool Al…
42 …template <typename T, glm::precision P, template <typename, glm::precision> class vecType, bool Al…
51 …template <typename T, glm::precision P, template <typename, glm::precision> class vecType, bool Al…
60 …template <typename T, glm::precision P, template <typename, glm::precision> class vecType, bool Al…
77 return glm::bitCount(~Value & (Value - static_cast<genIUType>(1)));
107 …template <typename T, glm::precision P, template <class, glm::precision> class vecType, bool EXEC …
116 template <typename T, glm::precision P, template <typename, glm::precision> class vecType>
125 template <typename T, glm::precision P, template <typename, glm::precision> class vecType, int>
[all …]
Dprecision.hpp8 namespace glm namespace
37 template <glm::precision P>
45 struct is_aligned<glm::aligned_lowp>
51 struct is_aligned<glm::aligned_mediump>
57 struct is_aligned<glm::aligned_highp>
Dfunc_integer_simd.inl2 /// @file glm/detail/func_integer_simd.inl
8 namespace glm{ namespace
11 template <glm::precision P>
32 template <glm::precision P>
66 }//namespace glm
Dtype_mat4x4_simd.inl2 /// @file glm/detail/type_mat4x4_sse2.inl
4 namespace glm namespace
7 }//namespace glm
Dtype_vec4.hpp16 namespace glm namespace
52 _GLM_SWIZZLE4_2_MEMBERS(T, P, glm::tvec2, x, y, z, w)
53 _GLM_SWIZZLE4_2_MEMBERS(T, P, glm::tvec2, r, g, b, a)
54 _GLM_SWIZZLE4_2_MEMBERS(T, P, glm::tvec2, s, t, p, q)
55 _GLM_SWIZZLE4_3_MEMBERS(T, P, glm::tvec3, x, y, z, w)
56 _GLM_SWIZZLE4_3_MEMBERS(T, P, glm::tvec3, r, g, b, a)
57 _GLM_SWIZZLE4_3_MEMBERS(T, P, glm::tvec3, s, t, p, q)
58 _GLM_SWIZZLE4_4_MEMBERS(T, P, glm::tvec4, x, y, z, w)
59 _GLM_SWIZZLE4_4_MEMBERS(T, P, glm::tvec4, r, g, b, a)
60 _GLM_SWIZZLE4_4_MEMBERS(T, P, glm::tvec4, s, t, p, q)
[all …]
Dfunc_vector_relational_simd.inl2 /// @file glm/detail/func_vector_relational_simd.inl
4 namespace glm{ namespace
9 }//namespace glm
Dfunc_packing_simd.inl2 /// @file glm/detail/func_packing_simd.inl
4 namespace glm{ namespace
9 }//namespace glm

1234567891011