HomeSort by relevance Sort by last modified time
    Searched refs:vec3 (Results 1 - 25 of 82) sorted by null

1 2 3 4

  /cts/tests/openglperf2/assets/fragment/
perspective 15 uniform vec3 u_LightPos;
17 varying vec3 v_Position;
18 varying vec3 v_Normal;
22 vec3 lightVector = normalize(u_LightPos - v_Position);
water 15 uniform vec3 u_LightPos;
19 varying vec3 v_Position;
25 vec3 map1 = texture2D(u_Texture1, v_TexCoordinate + offset).xyz * 2.0 - 1.0;
26 vec3 map2 = texture2D(u_Texture2, v_TexCoordinate + offset).xyz * 2.0 - 1.0;
27 vec3 normal = normalize((map1 * weight) + (map2 * (1.0 - weight)));
29 vec3 lightVector = normalize(u_LightPos - v_Position);
  /cts/tests/openglperf2/assets/vertex/
perspective 18 attribute vec3 a_Normal;
20 varying vec3 v_Position;
21 varying vec3 v_Normal;
25 v_Position = vec3(u_MVMatrix * a_Position);
29 v_Normal = vec3(u_MVMatrix * vec4(a_Normal, 0.0));
water 19 varying vec3 v_Position;
23 v_Position = vec3(u_MVMatrix * a_Position);
  /external/eigen/unsupported/test/
cxx11_tensor_mixed_indices.cpp 28 TensorMap<Tensor<float, 1, ColMajor>> vec3(data3, 6);
29 vec3 = vec1.sqrt();
34 VERIFY_IS_APPROX(vec3(0), sqrtf(4.0));
35 VERIFY_IS_APPROX(vec3(1), sqrtf(8.0));
36 VERIFY_IS_APPROX(vec3(2), sqrtf(15.0));
37 VERIFY_IS_APPROX(vec3(3), sqrtf(16.0));
38 VERIFY_IS_APPROX(vec3(4), sqrtf(23.0));
39 VERIFY_IS_APPROX(vec3(5), sqrtf(42.0));
cxx11_tensor_fixed_size.cpp 75 TensorFixedSize<float, Sizes<6> > vec3 = vec1.sqrt(); local
78 VERIFY_IS_EQUAL((vec3.size()), 6);
79 VERIFY_IS_EQUAL(vec3.rank(), 1);
80 // VERIFY_IS_EQUAL((vec3.dimensions()[0]), 6);
81 // VERIFY_IS_EQUAL((vec3.dimension(0)), 6);
83 VERIFY_IS_APPROX(vec3(0), sqrtf(4.0));
84 VERIFY_IS_APPROX(vec3(1), sqrtf(8.0));
85 VERIFY_IS_APPROX(vec3(2), sqrtf(15.0));
86 VERIFY_IS_APPROX(vec3(3), sqrtf(16.0));
87 VERIFY_IS_APPROX(vec3(4), sqrtf(23.0))
    [all...]
cxx11_tensor_simple.cpp 50 Tensor<int, 1> vec3; local
53 vec3.resize(6);
56 vec1(0) = 4; vec2(0) = 0; vec3(0) = 5;
57 vec1(1) = 8; vec2(1) = 1; vec3(1) = 4;
58 vec1(2) = 15; vec2(2) = 2; vec3(2) = 3;
59 vec1(3) = 16; vec2(3) = 3; vec3(3) = 2;
60 vec1(4) = 23; vec2(4) = 4; vec3(4) = 1;
61 vec1(5) = 42; vec2(5) = 5; vec3(5) = 0;
82 VERIFY_IS_EQUAL((vec3[0]), 5);
83 VERIFY_IS_EQUAL((vec3[1]), 4)
    [all...]
cxx11_tensor_expr.cpp 30 TensorMap<Tensor<float, 1>> vec3(data3, 6);
31 vec3 = vec1.sqrt();
39 VERIFY_IS_APPROX(vec3(0), sqrtf(4.0));
40 VERIFY_IS_APPROX(vec3(1), sqrtf(8.0));
41 VERIFY_IS_APPROX(vec3(2), sqrtf(15.0));
42 VERIFY_IS_APPROX(vec3(3), sqrtf(16.0));
43 VERIFY_IS_APPROX(vec3(4), sqrtf(23.0));
44 VERIFY_IS_APPROX(vec3(5), sqrtf(42.0));
60 vec3 = vec1 + vec2;
61 VERIFY_IS_APPROX(vec3(0), 4.0f + 0.0f)
    [all...]
  /frameworks/native/services/surfaceflinger/
Transform.h 26 #include <math/vec3.h>
67 const vec3& operator [] (size_t i) const; // returns column i
86 vec3 transform(const vec3& v) const;
95 vec3 v[3];
96 inline const vec3& operator [] (int i) const { return v[i]; }
97 inline vec3& operator [] (int i) { return v[i]; }
  /external/swiftshader/third_party/PowerVR_SDK/Examples/Advanced/ChameleonMan/OGLES2/
SkinnedVertShader.vsh 24 attribute highp vec3 inVertex;
25 attribute mediump vec3 inNormal;
26 attribute mediump vec3 inTangent;
27 attribute mediump vec3 inBiNormal;
33 uniform mediump vec3 LightPos;
39 varying mediump vec3 Light;
56 mediump vec3 worldNormal = normalMatrix * inNormal * boneWeights.x;
58 mediump vec3 worldTangent;
59 mediump vec3 worldBiNormal;
91 mediump vec3 TmpLightDir = normalize(LightPos - position.xyz)
    [all...]
  /external/vulkan-validation-layers/demos/smoke/
Simulation.h 36 glm::vec3 axis;
56 glm::vec3 position(float t);
60 glm::vec3 origin;
83 glm::vec3 light_pos;
84 glm::vec3 light_color;
Simulation.cpp 79 glm::vec3 pick()
81 return glm::vec3{ red_(rng_),
104 current_.axis = glm::normalize(glm::vec3(x, y, z));
109 current_.matrix = glm::scale(glm::mat4(1.0f), glm::vec3(current_.scale));
122 virtual glm::vec3 evaluate(float t) = 0;
142 glm::vec3 evaluate(float t)
157 segment_direction_ = glm::vec3(direction_(rng_),
173 glm::vec3 segment_start_;
174 glm::vec3 segment_direction_;
178 glm::vec3 unit_dir_
    [all...]
  /external/vulkan-validation-layers/libs/glm/detail/
dummy.cpp 53 glm::vec3 spotDirection; // Sdli
66 #include <glm/vec3.hpp>// glm::vec3
69 glm::vec3 computeNormal
71 glm::vec3 const & a,
72 glm::vec3 const & b,
73 glm::vec3 const & c
84 #include <glm/vec3.hpp> // glm::vec3
92 glm::mat4 ViewTranslate = glm::translate(glm::mat4(1.0f), glm::vec3(0.0f, 0.0f, -Translate));
    [all...]
  /external/clang/test/CodeGen/
init.c 45 typedef union vec3 { union
48 } vec3; typedef in typeref:union:vec3
49 vec3 f5(vec3 value) {
50 return (vec3) {{
  /frameworks/native/services/surfaceflinger/Effects/
Daltonizer.cpp 79 const vec3& lms_r(rgb2lms[0].rgb);
81 const vec3& lms_b(rgb2lms[2].rgb);
83 const vec3 lms_w((rgb2lms * vec4(1)).rgb);
88 const vec3 p0 = cross(lms_w, lms_b); // protanopia/deuteranopia
89 const vec3 p1 = cross(lms_w, lms_r); // tritanopia
  /external/eigen/test/
geo_orthomethods.cpp 49 Vector3 vec3 = Vector3::Random(); local
52 mcross = mat3.colwise().cross(vec3);
53 VERIFY_IS_APPROX(mcross.col(i), mat3.col(i).cross(vec3));
55 VERIFY_IS_MUCH_SMALLER_THAN((mat3.adjoint() * mat3.colwise().cross(vec3)).diagonal().cwiseAbs().sum(), Scalar(1));
58 VERIFY_IS_MUCH_SMALLER_THAN((vec3.adjoint() * mat3.colwise().cross(vec3)).cwiseAbs().sum(), Scalar(1));
59 VERIFY_IS_MUCH_SMALLER_THAN((vec3.adjoint() * Matrix3::Random().colwise().cross(vec3)).cwiseAbs().sum(), Scalar(1));
61 mcross = mat3.rowwise().cross(vec3);
62 VERIFY_IS_APPROX(mcross.row(i), mat3.row(i).cross(vec3));
104 Vector3 vec3 = Vector3::Random(); local
    [all...]
sparse_solvers.cpp 47 DenseVector vec2 = vec1, vec3 = vec1; local
54 m2.template triangularView<Lower>().solve(vec3));
59 m2.template triangularView<Upper>().solve(vec3));
61 m2.conjugate().template triangularView<Upper>().solve(vec3));
67 mm2.conjugate().template triangularView<Upper>().solve(vec3));
73 m2.transpose().template triangularView<Upper>().solve(vec3));
78 m2.transpose().template triangularView<Lower>().solve(vec3));
100 m2.template triangularView<Lower>().solve(vec3));
  /frameworks/native/libs/math/tests/
vec_test.cpp 33 vec3& v3(v4.xyz);
36 EXPECT_EQ(sizeof(vec3), sizeof(float)*3);
72 vec4 v5(vec3(v2.xy, 42), 24);
106 v0.xyz = vec3(1, 2, 3);
238 vec3 east(1, 0, 0);
239 vec3 north(0, 1, 0);
240 vec3 up(cross(east, north));
241 EXPECT_EQ(up, vec3(0, 0, 1));
246 vec3 v0(1, 2, 3);
247 vec3 vn(normalize(v0))
    [all...]
  /external/libvpx/libvpx/vpx_dsp/mips/
idct32x32_msa.c 43 v8i16 vec0, vec1, vec2, vec3, loc0, loc1, loc2, loc3; local
52 BUTTERFLY_4(reg1, reg7, reg3, reg5, vec1, vec3, vec2, vec0);
55 loc1 = vec3;
60 BUTTERFLY_4(reg4, reg0, reg2, reg6, vec1, vec3, vec2, vec0);
62 BUTTERFLY_4(vec2, vec3, loc3, loc2, stp2, stp1, stp6, stp5);
127 v8i16 vec0, vec1, vec2, vec3, loc0, loc1, loc2, loc3; local
166 BUTTERFLY_4(reg0, reg7, reg6, reg1, vec0, vec1, vec2, vec3);
169 DOTP_CONST_PAIR(vec2, vec3, cospi_24_64, cospi_8_64, vec2, vec3);
170 ST_SH2(vec2, vec3, (tmp_odd_buf + 2 * 8), 8)
242 v8i16 vec0, vec1, vec2, vec3, loc0, loc1, loc2, loc3; local
353 v8i16 vec0, vec1, vec2, vec3, loc0, loc1, loc2, loc3; local
433 v8i16 vec0, vec1, vec2, vec3, loc0, loc1, loc2, loc3; local
541 v8i16 vec0, vec1, vec2, vec3, loc0, loc1, loc2, loc3; local
    [all...]
vpx_convolve8_avg_horiz_msa.c 56 v8i16 filt, vec0, vec1, vec2, vec3; local
78 filt0, filt1, filt2, filt3, vec2, vec3);
79 SRARI_H4_SH(vec0, vec1, vec2, vec3, FILTER_BITS);
80 SAT_SH4_SH(vec0, vec1, vec2, vec3, 7);
81 PCKEV_B4_UB(vec0, vec0, vec1, vec1, vec2, vec2, vec3, vec3, res0, res1, res2,
147 v8i16 vec0, vec1, vec2, vec3, vec4, vec5, vec6, vec7; local
171 VSHF_B4_SH(src3, src3, mask0, mask1, mask2, mask3, vec3, vec7, vec11,
173 DOTP_SB4_SH(vec0, vec1, vec2, vec3, filt0, filt0, filt0, filt0, vec0, vec1,
174 vec2, vec3);
201 v8i16 vec0, vec1, vec2, vec3, vec4, vec5, vec6, vec7; local
256 v8i16 vec0, vec1, vec2, vec3, vec4, vec5, vec6, vec7; local
314 v8u16 vec2, vec3, filt; local
338 v16u8 filt0, vec0, vec1, vec2, vec3, res0, res1, res2, res3; local
383 v8u16 vec0, vec1, vec2, vec3, filt; local
407 v8u16 vec0, vec1, vec2, vec3, filt; local
484 v16u8 vec0, vec1, vec2, vec3, vec4, vec5, vec6, vec7; local
551 v16u8 vec0, vec1, vec2, vec3, vec4, vec5, vec6, vec7; local
600 v16u8 vec0, vec1, vec2, vec3, vec4, vec5, vec6, vec7; local
    [all...]
vpx_convolve8_horiz_msa.c 322 v8u16 vec2, vec3, filt; local
332 DOTP_UB2_UH(vec0, vec1, filt0, filt0, vec2, vec3);
333 SRARI_H2_UH(vec2, vec3, FILTER_BITS);
334 PCKEV_B2_UB(vec2, vec2, vec3, vec3, res0, res1);
341 v16u8 vec0, vec1, vec2, vec3, filt0; local
354 VSHF_B2_UB(src4, src5, src6, src7, mask, mask, vec2, vec3);
355 DOTP_UB4_UH(vec0, vec1, vec2, vec3, filt0, filt0, filt0, filt0, vec4, vec5,
380 v8u16 vec0, vec1, vec2, vec3, filt; local
390 VSHF_B2_UH(src2, src2, src3, src3, mask, mask, vec2, vec3);
403 v8u16 vec0, vec1, vec2, vec3, filt; local
476 v16u8 filt0, vec0, vec1, vec2, vec3, vec4, vec5, vec6, vec7; local
541 v16u8 filt0, vec0, vec1, vec2, vec3, vec4, vec5, vec6, vec7; local
586 v16u8 filt0, vec0, vec1, vec2, vec3, vec4, vec5, vec6, vec7; local
    [all...]
  /packages/services/Car/evs/app/
RenderTopView.cpp 26 #include <math/vec3.h>
37 static android::vec3 unitVectorFromPitchAndYaw(float pitch, float yaw) {
42 return android::vec3(cosPitch * -sinYaw,
72 android::vec3 vAt = unitVectorFromPitchAndYaw(cam.pitch, cam.yaw);
73 android::vec3 vRt = android::vec3(cosYaw, sinYaw, 0.0f);
74 android::vec3 vUp = -cross(vAt, vRt);
75 android::vec3 eye = android::vec3(cam.position[X], cam.position[Y], cam.position[Z]);
305 const android::vec3 topLeft(left, top, 0.0f)
    [all...]
  /external/libyuv/files/source/
scale_msa.cc 69 v16u8 src0, src1, src2, src3, vec0, vec1, vec2, vec3, dst0; local
81 vec3 = (v16u8)__msa_vshf_b(shuffler, (v16i8)src3, (v16i8)src3);
85 reg3 = __msa_hadd_u_h(vec3, vec3);
132 v16u8 vec0, vec1, vec2, vec3; local
156 vec3 = (v16u8)__msa_ilvl_b((v16i8)src3, (v16i8)src1);
160 reg3 = __msa_hadd_u_h(vec3, vec3);
203 v16u8 src0, src1, src2, src3, vec0, vec1, vec2, vec3, dst0, dst1; local
214 vec3 = (v16u8)__msa_pckod_b((v16i8)src3, (v16i8)src2)
231 v8u16 vec0, vec1, vec2, vec3; local
295 v8u16 vec0, vec1, vec2, vec3; local
388 v8u16 vec0, vec1, vec2, vec3, vec4, vec5, vec6, vec7; local
458 v8u16 vec0, vec1, vec2, vec3, vec4, vec5, vec6, vec7; local
    [all...]
  /external/vulkan-validation-layers/demos/
linmath.h 32 typedef float vec3[3]; typedef
33 static inline void vec3_add(vec3 r, vec3 const a, vec3 const b) {
38 static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) {
43 static inline void vec3_scale(vec3 r, vec3 const v, float const s) {
48 static inline float vec3_mul_inner(vec3 const a, vec3 const b)
    [all...]
  /external/libvpx/libvpx/vp8/common/mips/msa/
bilinear_filter_msa.c 35 v8u16 vec2, vec3, filt; local
44 DOTP_UB2_UH(vec0, vec1, filt0, filt0, vec2, vec3);
45 SRARI_H2_UH(vec2, vec3, VP8_FILTER_SHIFT);
46 PCKEV_B2_UB(vec2, vec2, vec3, vec3, res0, res1);
53 v16u8 vec0, vec1, vec2, vec3, filt0; local
65 VSHF_B2_UB(src4, src5, src6, src7, mask, mask, vec2, vec3);
66 DOTP_UB4_UH(vec0, vec1, vec2, vec3, filt0, filt0, filt0, filt0, vec4, vec5,
91 v8u16 vec0, vec1, vec2, vec3, filt; local
100 VSHF_B2_UH(src2, src2, src3, src3, mask, mask, vec2, vec3);
113 v8u16 vec0, vec1, vec2, vec3, filt; local
185 v16u8 filt0, vec0, vec1, vec2, vec3, vec4, vec5, vec6, vec7; local
314 v16u8 src0, src1, src2, src3, src4, vec0, vec1, vec2, vec3, filt0; local
337 v16u8 vec0, vec1, vec2, vec3, vec4, vec5, vec6, vec7, filt0; local
389 v16u8 vec0, vec1, vec2, vec3, vec4, vec5, vec6, vec7, filt0; local
466 v16u8 filt_hz, filt_vt, vec0, vec1, vec2, vec3; local
521 v16u8 filt_hz, filt_vt, vec0, vec1, vec2, vec3; local
    [all...]

Completed in 806 milliseconds

1 2 3 4