Home
last modified time | relevance | path

Searched refs:Vector4 (Results 1 – 25 of 46) sorted by relevance

12

/external/swiftshader/src/Reactor/
DSwizzle.hpp20 template<class Vector4>
26 template<class Vector4, int T>
29 friend Vector4;
32 operator RValue<Vector4>() const;
35 Vector4 *parent;
38 template<class Vector4, int T>
42 operator RValue<Vector4>() const;
45 Vector4 *parent;
48 template<class Vector4, int T>
51 friend XYZW<Vector4>;
[all …]
DReactor.hpp2573 template<class Vector4, int T>
2574 Swizzle2<Vector4, T>::operator RValue<Vector4>() const in operator RValue<Vector4>()
2579 return Swizzle(RValue<Vector4>(vector), T); in operator RValue<Vector4>()
2582 template<class Vector4, int T>
2583 Swizzle4<Vector4, T>::operator RValue<Vector4>() const in operator RValue<Vector4>()
2588 return Swizzle(RValue<Vector4>(vector), T); in operator RValue<Vector4>()
2591 template<class Vector4, int T>
2592 SwizzleMask4<Vector4, T>::operator RValue<Vector4>() const in operator RValue<Vector4>()
2597 return Swizzle(RValue<Vector4>(vector), T); in operator RValue<Vector4>()
2600 template<class Vector4, int T>
[all …]
/external/angle/src/common/
Dvector_utils_unittest.cpp30 ASSERT_EQ(Vector4(0.0), Vector4(0.0)); in TEST()
31 ASSERT_NE(Vector4(1.0, 0.0, 0.0, 0.0), Vector4(0.0)); in TEST()
32 ASSERT_NE(Vector4(0.0, 1.0, 0.0, 0.0), Vector4(0.0)); in TEST()
33 ASSERT_NE(Vector4(0.0, 0.0, 1.0, 0.0), Vector4(0.0)); in TEST()
34 ASSERT_NE(Vector4(0.0, 0.0, 0.0, 1.0), Vector4(0.0)); in TEST()
68 Vector4 vec(1.0, Vector2(2.0, 3.0), 4.0); in TEST()
175 Vector4 vec4(1.0, 2.0, 3.0, 4.0); in TEST()
Dmatrix_utils.cpp267 Vector4 Mat4::product(const Vector4 &b) in product()
269 return Vector4( in product()
/external/angle/src/tests/gl_tests/
DRobustBufferAccessBehaviorTest.cpp216 const std::array<angle::Vector4, 16> vertices{ in TEST_P()
217 angle::Vector4(-1.0f, 1.0f, 0.5f, 1.0f), // v0 in TEST_P()
218 angle::Vector4(1.0f, 0.0f, 0.0f, 1.0f), // c0 in TEST_P()
219 angle::Vector4(-1.0f, -1.0f, 0.5f, 1.0f), // v1 in TEST_P()
220 angle::Vector4(1.0f, 0.0f, 0.0f, 1.0f), // c1 in TEST_P()
221 angle::Vector4(1.0f, -1.0f, 0.5f, 1.0f), // v2 in TEST_P()
222 angle::Vector4(1.0f, 0.0f, 0.0f, 1.0f), // c2 in TEST_P()
223 angle::Vector4(1.0f, 1.0f, 0.5f, 1.0f), // v3 in TEST_P()
224 angle::Vector4(1.0f, 0.0f, 0.0f, 1.0f), // c3 in TEST_P()
226 angle::Vector4(-1.0f, 1.0f, 0.5f, 1.0f), // v4 in TEST_P()
[all …]
DRenderbufferMultisampleTest.cpp181 std::array<Vector4, 4> quadColor = { in TEST_P()
182 Vector4(1.0f, 0.0f, 0.0f, 1.0f), Vector4(1.0f, 0.0f, 0.0f, 1.0f), in TEST_P()
183 Vector4(1.0f, 0.0f, 0.0f, 1.0f), Vector4(1.0f, 0.0f, 0.0f, 1.0f)}; in TEST_P()
DShaderInterpTest.cpp30 std::array<Vector4, 3> vertices; in draw()
35 std::array<Vector4, 3> colors; in draw()
DDepthStencilTest.cpp166 Vector4 color1(0.1f, 0.2f, 0.3f, 0.4f); in prepareSingleEmulatedWithPacked()
180 Vector4 color2(0.2f, 0.4f, 0.6f, 0.8f); in prepareSingleEmulatedWithPacked()
189 GLColor color2RGB(Vector4(color2[0], color1[1], color2[2], color1[3])); in prepareSingleEmulatedWithPacked()
202 Vector4 color3(0.3f, 0.5f, 0.7f, 0.9f); in prepareSingleEmulatedWithPacked()
DShaderNonConstGlobalInitializerTest.cpp26 std::array<Vector4, 3> vertices; in draw()
DTransformFeedbackTest.cpp1559 glBufferData(GL_TRANSFORM_FEEDBACK_BUFFER, sizeof(Vector4) * 2, nullptr, GL_STREAM_DRAW); in TEST_P()
1566 Vector4 drawVertex0(4, 3, 2, 1); in TEST_P()
1567 Vector4 drawVertex1(8, 7, 6, 5); in TEST_P()
1568 Vector4 drawVertex2(12, 11, 10, 9); in TEST_P()
1592 glMapBufferRange(GL_TRANSFORM_FEEDBACK_BUFFER, 0, sizeof(Vector4) * 2, GL_MAP_READ_BIT); in TEST_P()
1595 const Vector4 *vecPointer = static_cast<const Vector4 *>(mapPointer); in TEST_P()
2355 glMapBufferRange(GL_TRANSFORM_FEEDBACK_BUFFER, 0, sizeof(Vector4) * 4, GL_MAP_READ_BIT); in TEST_P()
2357 const Vector4 *vecPointer = static_cast<const Vector4 *>(mapPointer); in TEST_P()
2358 ASSERT_EQ(vecPointer[0], Vector4(0, 0, 0, 0)); in TEST_P()
2427 glMapBufferRange(GL_TRANSFORM_FEEDBACK_BUFFER, 0, sizeof(Vector4) * 4, GL_MAP_READ_BIT); in TEST_P()
[all …]
DSixteenBppTextureTest.cpp23 Vector4 vecColor(colorf.red, colorf.green, colorf.blue, colorf.alpha); in Convert565()
29 const Vector4 &vecColor = glColor.toNormalizedVector(); in Convert565()
351 Vector4 rawColor(0.5f, 0.7f, 1.0f, 0.0f); in TEST_P()
/external/angle/src/tests/perf_tests/
DMultiviewPerf.cpp60 Vector4 position;
61 Vector4 colorAttributeData[6];
344 Vector4 vertices[6] = {Vector4(.0f, .0f, .0f, 1.f), in initializeBenchmark()
345 Vector4(quadWidth, .0f, .0f, 1.f), in initializeBenchmark()
346 Vector4(quadWidth, quadHeight, 0.f, 1.f), in initializeBenchmark()
347 Vector4(.0f, .0f, 0.f, 1.f), in initializeBenchmark()
348 Vector4(quadWidth, quadHeight, .0f, 1.f), in initializeBenchmark()
349 Vector4(.0f, quadHeight, .0f, 1.f)}; in initializeBenchmark()
354 glBufferData(GL_ARRAY_BUFFER, 6 * sizeof(Vector4), vertices, GL_STATIC_DRAW); in initializeBenchmark()
468 v0.position = Vector4(2.f * wf - 1.f, 2.f * hf - 1.f, .0f, 1.f); in initializeBenchmark()
[all …]
DClearPerf.cpp174 Vector4 floatColor = color.toNormalizedVector(); in drawBenchmark()
/external/eigen/test/
Dgeo_orthomethods.cpp25 typedef Matrix<Scalar,4,1> Vector4; in orthomethods_3() typedef
65 Vector4 v40 = Vector4::Random(), in orthomethods_3()
66 v41 = Vector4::Random(), in orthomethods_3()
67 v42 = Vector4::Random(); in orthomethods_3()
71 VERIFY_IS_MUCH_SMALLER_THAN(v40.cross3(Vector4::Random()).dot(v40), Scalar(1)); in orthomethods_3()
Dgeo_transformations.cpp97 typedef Matrix<Scalar,4,1> Vector4; in transformations() typedef
212 mat4 << mat3 , Vector3::Zero() , Vector4::Zero().transpose(); in transformations()
616 typedef Matrix<Scalar,4,1> Vector4; in transformations_no_scale() typedef
663 VERIFY_IS_APPROX(Vector4(m3.row(3)), Vector4(0.0, 0.0, 0.0, 1.0)); in transformations_no_scale()
/external/angle/util/
DMatrix.h50 static angle::Vector3 transform(const Matrix4 &mat, const angle::Vector4 &pt);
57 ANGLE_UTIL_EXPORT angle::Vector4 operator*(const Matrix4 &a, const angle::Vector4 &b);
Drandom_utils.h82 inline Vector4 RandomVec4(int seed, float minValue, float maxValue) in RandomVec4()
86 return Vector4( in RandomVec4()
DMatrix.cpp212 Vector4 transformed = (mat * Vector4(pt, 1.0f)).normalized(); in transform()
216 Vector3 Matrix4::transform(const Matrix4 &mat, const Vector4 &pt) in transform()
218 Vector4 transformed = (mat * pt).normalized(); in transform()
283 Vector4 operator*(const Matrix4 &a, const Vector4 &b) in operator *()
285 return Vector4(a.data[0] * b.x() + a.data[4] * b.y() + a.data[8] * b.z() + a.data[12] * b.w(), in operator *()
/external/angle/samples/multi_window/
DMultiWindow.cpp146 Matrix4::transform(mvpMatrix, Vector4(midX, static_cast<float>(top), 0.0f, 1.0f)), in draw()
147 Matrix4::transform(mvpMatrix, Vector4(static_cast<float>(left), in draw()
149 Matrix4::transform(mvpMatrix, Vector4(static_cast<float>(right), in draw()
/external/angle/src/libANGLE/
DGLES1State.h67 angle::Vector4 position = {0.0f, 0.0f, 1.0f, 0.0f};
155 ClipPlaneParameters(bool enabled, const angle::Vector4 &equation);
160 angle::Vector4 equation;
DGLES1State.cpp55 ClipPlaneParameters::ClipPlaneParameters(bool enabled, const angle::Vector4 &equation) in ClipPlaneParameters()
173 ClipPlaneParameters(false, angle::Vector4(0.0f, 0.0f, 0.0f, 0.0f))); in initialize()
/external/rust/crates/glam/src/features/
Dimpl_mint.rs74 impl From<mint::Vector4<$t>> for $vec4 {
75 fn from(v: mint::Vector4<$t>) -> Self {
80 impl From<$vec4> for mint::Vector4<$t> {
92 type MintType = mint::Vector4<$t>;
370 let m = mint::Vector4 {
/external/angle/src/tests/gl_tests/gles1/
DLightsTest.cpp76 const angle::Vector4 kLightnPosition(0.0f, 0.0f, 1.0f, 0.0f); in TEST_P()
90 angle::Vector4 actualPosition; in TEST_P()
224 angle::Vector4 actualPosition; in TEST_P()
256 const angle::Vector4 position(rng.randomFloat(), rng.randomFloat(), rng.randomFloat(), in TEST_P()
DBGRATextureTest.cpp44 Vector4 colorF = color.toNormalizedVector(); in clearGLColor()
/external/angle/samples/particle_system/
DParticleSystem.cpp147 Vector4 color(mRNG.randomFloatBetween(0.0f, 1.0f), mRNG.randomFloatBetween(0.0f, 1.0f), in step()

12