Home
last modified time | relevance | path

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

12

/external/swiftshader/src/Reactor/
DReactor.hpp1469 template<class Vector4>
1472 template<class Vector4, int T>
1475 friend Vector4;
1478 operator RValue<Vector4>() const;
1481 Vector4 *parent;
1484 template<class Vector4, int T>
1488 operator RValue<Vector4>() const;
1491 Vector4 *parent;
1494 template<class Vector4, int T>
1497 friend XYZW<Vector4>;
[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()
Dmatrix_utils.h418 Vector4 product(const Vector4 &b);
/external/angle/src/tests/gl_tests/
DRobustBufferAccessBehaviorTest.cpp181 const std::array<angle::Vector4, 16> vertices{ in TEST_P()
182 angle::Vector4(-1.0f, 1.0f, 0.5f, 1.0f), // v0 in TEST_P()
183 angle::Vector4(1.0f, 0.0f, 0.0f, 1.0f), // c0 in TEST_P()
184 angle::Vector4(-1.0f, -1.0f, 0.5f, 1.0f), // v1 in TEST_P()
185 angle::Vector4(1.0f, 0.0f, 0.0f, 1.0f), // c1 in TEST_P()
186 angle::Vector4(1.0f, -1.0f, 0.5f, 1.0f), // v2 in TEST_P()
187 angle::Vector4(1.0f, 0.0f, 0.0f, 1.0f), // c2 in TEST_P()
188 angle::Vector4(1.0f, 1.0f, 0.5f, 1.0f), // v3 in TEST_P()
189 angle::Vector4(1.0f, 0.0f, 0.0f, 1.0f), // c3 in TEST_P()
191 angle::Vector4(-1.0f, 1.0f, 0.5f, 1.0f), // v4 in TEST_P()
[all …]
DShaderInterpTest.cpp30 std::array<Vector4, 3> vertices; in draw()
35 std::array<Vector4, 3> colors; in draw()
DDepthStencilTest.cpp174 Vector4 color1(0.1f, 0.2f, 0.3f, 0.4f); in prepareSingleEmulatedWithPacked()
188 Vector4 color2(0.2f, 0.4f, 0.6f, 0.8f); in prepareSingleEmulatedWithPacked()
197 GLColor color2RGB(Vector4(color2[0], color1[1], color2[2], color1[3])); in prepareSingleEmulatedWithPacked()
210 Vector4 color3(0.3f, 0.5f, 0.7f, 0.9f); in prepareSingleEmulatedWithPacked()
DMultithreadingTest.cpp207 const angle::Vector4 floatColor = color.toNormalizedVector(); in TEST_P()
281 const angle::Vector4 floatColor = color.toNormalizedVector(); in TEST_P()
327 const angle::Vector4 floatColor = color.toNormalizedVector(); in TEST_P()
380 const angle::Vector4 floatColor = color.toNormalizedVector(); in TEST_P()
433 const angle::Vector4 floatColor = color.toNormalizedVector(); in TEST_P()
DShaderNonConstGlobalInitializerTest.cpp26 std::array<Vector4, 3> vertices; in draw()
DTransformFeedbackTest.cpp1456 glBufferData(GL_TRANSFORM_FEEDBACK_BUFFER, sizeof(Vector4) * 2, nullptr, GL_STREAM_DRAW); in TEST_P()
1463 Vector4 drawVertex0(4, 3, 2, 1); in TEST_P()
1464 Vector4 drawVertex1(8, 7, 6, 5); in TEST_P()
1465 Vector4 drawVertex2(12, 11, 10, 9); in TEST_P()
1489 glMapBufferRange(GL_TRANSFORM_FEEDBACK_BUFFER, 0, sizeof(Vector4) * 2, GL_MAP_READ_BIT); in TEST_P()
1492 const Vector4 *vecPointer = static_cast<const Vector4 *>(mapPointer); in TEST_P()
2188 glMapBufferRange(GL_TRANSFORM_FEEDBACK_BUFFER, 0, sizeof(Vector4) * 4, GL_MAP_READ_BIT); in TEST_P()
2190 const Vector4 *vecPointer = static_cast<const Vector4 *>(mapPointer); in TEST_P()
2191 ASSERT_EQ(vecPointer[0], Vector4(0, 0, 0, 0)); in TEST_P()
2260 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()
DClearTest.cpp746 angle::Vector4 clearColor = clearValues[0].toNormalizedVector(); in TEST_P()
881 angle::Vector4 clearColor = GLColor(31, 63, 127, 191).toNormalizedVector(); in TEST_P()
987 angle::Vector4 clearColor = GLColor(31, 63, 127, 191).toNormalizedVector(); in TEST_P()
1205 angle::Vector4 clearValuefv = clearValuef.toNormalizedVector(); in TEST_P()
1488 const Vector4 color = RandomVec4(seed, fmtValueMin, fmtValueMax); in TEST_P()
1512 const Vector4 color = RandomVec4(seed, fmtValueMin, fmtValueMax); in TEST_P()
1594 Vector4 color1(0.1f, 0.2f, 0.3f, 0.4f); in maskedScissoredColorDepthStencilClear()
1623 Vector4 color2(0.2f, 0.4f, 0.6f, 0.8f); in maskedScissoredColorDepthStencilClear()
1881 Vector4 floatColor = color.toNormalizedVector(); in TEST_P()
DVulkanMultithreadingTest.cpp177 const angle::Vector4 floatColor = color.toNormalizedVector(); in TEST_P()
/external/angle/src/tests/perf_tests/
DMultiviewPerf.cpp60 Vector4 position;
61 Vector4 colorAttributeData[6];
346 Vector4 vertices[6] = {Vector4(.0f, .0f, .0f, 1.f), in initializeBenchmark()
347 Vector4(quadWidth, .0f, .0f, 1.f), in initializeBenchmark()
348 Vector4(quadWidth, quadHeight, 0.f, 1.f), in initializeBenchmark()
349 Vector4(.0f, .0f, 0.f, 1.f), in initializeBenchmark()
350 Vector4(quadWidth, quadHeight, .0f, 1.f), in initializeBenchmark()
351 Vector4(.0f, quadHeight, .0f, 1.f)}; in initializeBenchmark()
356 glBufferData(GL_ARRAY_BUFFER, 6 * sizeof(Vector4), vertices, GL_STATIC_DRAW); in initializeBenchmark()
470 v0.position = Vector4(2.f * wf - 1.f, 2.f * hf - 1.f, .0f, 1.f); in initializeBenchmark()
[all …]
/external/llvm-project/llvm/test/Transforms/PhaseOrdering/X86/
Daddsub.ll40 %struct.Vector4 = type { float, float, float, float }
71 …x float> %a0, <2 x float> %a1, <2 x float> %b0, <2 x float> %b1, %struct.Vector4* nocapture derefe…
76 ; CHECK-NEXT: [[TMP4:%.*]] = bitcast %struct.Vector4* [[R:%.*]] to <4 x float>*
83 %r0 = getelementptr inbounds %struct.Vector4, %struct.Vector4* %r, i64 0, i32 0
88 %r1 = getelementptr inbounds %struct.Vector4, %struct.Vector4* %r, i64 0, i32 1
93 %r2 = getelementptr inbounds %struct.Vector4, %struct.Vector4* %r, i64 0, i32 2
98 %r3 = getelementptr inbounds %struct.Vector4, %struct.Vector4* %r, i64 0, i32 3
/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()
/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.h73 inline Vector4 RandomVec4(int seed, float minValue, float maxValue) in RandomVec4()
77 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/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dcert-mem57-cpp.cpp27 struct alignas(8) Vector4 { struct
36 auto *V4 = new Vector4; in f() argument
/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/tests/gl_tests/gles1/
DLightsTest.cpp74 const angle::Vector4 kLightnPosition(0.0f, 0.0f, 1.0f, 0.0f); in TEST_P()
88 angle::Vector4 actualPosition; in TEST_P()
222 angle::Vector4 actualPosition; in TEST_P()
254 const angle::Vector4 position(rng.randomFloat(), rng.randomFloat(), rng.randomFloat(), in TEST_P()
/external/angle/src/libANGLE/
DGLES1State.h67 angle::Vector4 position = {0.0f, 0.0f, 1.0f, 0.0f};
136 ClipPlaneParameters(bool enabled, const angle::Vector4 &equation);
141 angle::Vector4 equation;
DGLES1State.cpp48 ClipPlaneParameters::ClipPlaneParameters(bool enabled, const angle::Vector4 &equation) in ClipPlaneParameters()
168 ClipPlaneParameters(false, angle::Vector4(0.0f, 0.0f, 0.0f, 0.0f))); in initialize()
/external/angle/samples/particle_system/
DParticleSystem.cpp147 Vector4 color(mRNG.randomFloatBetween(0.0f, 1.0f), mRNG.randomFloatBetween(0.0f, 1.0f), in step()

12