/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> 71 const vec3& operator [] (size_t i) const; // returns column i 91 vec3 transform(const vec3& v) const; 100 vec3 v[3]; 101 inline const vec3& operator [] (int i) const { return v[i]; } 102 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 | 62 glm::vec3 pick() { return glm::vec3{red_(rng_), green_(rng_), blue_(rng_)}; } 79 current_.axis = glm::normalize(glm::vec3(x, y, z)); 84 current_.matrix = glm::scale(glm::mat4(1.0f), glm::vec3(current_.scale)); 96 virtual glm::vec3 evaluate(float t) = 0; 118 glm::vec3 evaluate(float t) { 130 segment_direction_ = glm::vec3(direction_(rng_), direction_(rng_), direction_(rng_)); 144 glm::vec3 segment_start_; 145 glm::vec3 segment_direction_; 149 glm::vec3 unit_dir_ [all...] |
/external/vulkan-validation-layers/libs/glm/detail/ |
dummy.cpp | 52 glm::vec3 spotDirection; // Sdli 64 #include <glm/vec3.hpp>// glm::vec3 67 glm::vec3 computeNormal 69 glm::vec3 const & a, 70 glm::vec3 const & b, 71 glm::vec3 const & c 82 #include <glm/vec3.hpp> // glm::vec3 90 glm::mat4 ViewTranslate = glm::translate(glm::mat4(1.0f), glm::vec3(0.0f, 0.0f, -Translate)) [all...] |
/prebuilts/ndk/r16/sources/third_party/vulkan/src/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...] |
/cts/tests/tests/graphics/assets/shaders/ |
tri.frag | 23 vec3 colors;
|
/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...] |
/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 | 57 v8i16 filt, vec0, vec1, vec2, vec3; local 82 filt0, filt1, filt2, filt3, vec2, vec3); 83 SRARI_H4_SH(vec0, vec1, vec2, vec3, FILTER_BITS); 84 SAT_SH4_SH(vec0, vec1, vec2, vec3, 7); 85 PCKEV_B4_UB(vec0, vec0, vec1, vec1, vec2, vec2, vec3, vec3, res0, res1, res2, 151 v8i16 vec0, vec1, vec2, vec3, vec4, vec5, vec6, vec7; local 175 VSHF_B4_SH(src3, src3, mask0, mask1, mask2, mask3, vec3, vec7, vec11, 177 DOTP_SB4_SH(vec0, vec1, vec2, vec3, filt0, filt0, filt0, filt0, vec0, vec1, 178 vec2, vec3); 205 v8i16 vec0, vec1, vec2, vec3, vec4, vec5, vec6, vec7; local 260 v8i16 vec0, vec1, vec2, vec3, vec4, vec5, vec6, vec7; local 319 v8u16 vec2, vec3, filt; local 344 v16u8 filt0, vec0, vec1, vec2, vec3, res0, res1, res2, res3; local 389 v8u16 vec0, vec1, vec2, vec3, filt; local 415 v8u16 vec0, vec1, vec2, vec3, filt; local 496 v16u8 vec0, vec1, vec2, vec3, vec4, vec5, vec6, vec7; local 563 v16u8 vec0, vec1, vec2, vec3, vec4, vec5, vec6, vec7; local 612 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) { 37 static inline void vec3_sub(vec3 r, vec3 const a, vec3 const b) { 41 static inline void vec3_scale(vec3 r, vec3 const v, float const s) { 45 static inline float vec3_mul_inner(vec3 const a, vec3 const b) [all...] |