Home
last modified time | relevance | path

Searched refs:Vec2 (Results 1 – 25 of 240) sorted by relevance

12345678910

/third_party/vk-gl-cts/framework/common/
DtcuTexLookupVerifier.hpp107 Vec2 computeLodBoundsFromDerivates (const float dudx, const float dudy, const LodPrecision& prec);
108 Vec2 computeLodBoundsFromDerivates (const float dudx, const float dvdx, const float dudy, const f…
109 Vec2 computeLodBoundsFromDerivates (const float dudx, const float dvdx, const float dwdx, const f…
110 Vec2 computeCubeLodBoundsFromDerivates (const Vec3& coord, const Vec3& coordDx, const Vec3& coordD…
112 Vec2 clampLodBounds (const Vec2& lodBounds, const Vec2& lodMinMax, const LodPrecision& prec);
114 …t Sampler& sampler, const LookupPrecision& prec, const float coord, const Vec2& lodBounds, const V…
115 …ture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, const Vec2& lodBound…
116 …t Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const V…
117 …ture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, const Vec2& lodBound…
118 …t Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const V…
[all …]
DtcuRasterizationVerifier.cpp86 const tcu::Vec2 u (p1.x() / p1.w() - p0.x() / p0.w(), p1.y() / p1.w() - p0.y() / p0.w()); in isTriangleClockwise()
87 const tcu::Vec2 v (p2.x() / p2.w() - p0.x() / p0.w(), p2.y() / p2.w() - p0.y() / p0.w()); in isTriangleClockwise()
104 bool pixelNearLineSegment (const tcu::IVec2& pixel, const tcu::Vec2& p0, const tcu::Vec2& p1) in pixelNearLineSegment()
106 const tcu::Vec2 pixelCenterPosition = tcu::Vec2((float)pixel.x() + 0.5f, (float)pixel.y() + 0.5f); in pixelNearLineSegment()
114 const tcu::Vec2 line = p1 - p0; in pixelNearLineSegment()
115 const tcu::Vec2 v = pixelCenterPosition - p0; in pixelNearLineSegment()
145 const tcu::Vec2 triangleNormalizedDeviceSpace[3] = in pixelOnlyOnASharedEdge()
147 …tcu::Vec2(triangle.positions[0].x() / triangle.positions[0].w(), triangle.positions[0].y() / trian… in pixelOnlyOnASharedEdge()
148 …tcu::Vec2(triangle.positions[1].x() / triangle.positions[1].w(), triangle.positions[1].y() / trian… in pixelOnlyOnASharedEdge()
149 …tcu::Vec2(triangle.positions[2].x() / triangle.positions[2].w(), triangle.positions[2].y() / trian… in pixelOnlyOnASharedEdge()
[all …]
DtcuTexCompareVerifier.hpp55 …, const Sampler& sampler, const TexComparePrecision& prec, const Vec2& coord, const Vec2& lodBound…
56 …mpler& sampler, const TexComparePrecision& prec, const Vec3& coord, const Vec2& lodBounds, const f…
57 …mpler& sampler, const TexComparePrecision& prec, const Vec3& coord, const Vec2& lodBounds, const f…
58 …mpler& sampler, const TexComparePrecision& prec, const Vec1& coord, const Vec2& lodBounds, const f…
59 …, const Sampler& sampler, const TexComparePrecision& prec, const Vec2& coord, const Vec2& lodBound…
60 …mpler& sampler, const TexComparePrecision& prec, const Vec4& coord, const Vec2& lodBounds, const f…
62 … texture, const Sampler& sampler, const TexComparePrecision& prec, const Vec2& coord, const IVec2…
DtcuTexLookupVerifier.cpp251 const Vec2& fBounds, in isLinearRangeValid()
289 const Vec2& xBounds, in isBilinearRangeValid()
290 const Vec2& yBounds, in isBilinearRangeValid()
318 const Vec2& xBounds, in isTrilinearRangeValid()
319 const Vec2& yBounds, in isTrilinearRangeValid()
320 const Vec2& zBounds, in isTrilinearRangeValid()
400 const Vec2& xBounds0, in is1DTrilinearFilterResultValid()
401 const Vec2& xBounds1, in is1DTrilinearFilterResultValid()
402 const Vec2& zBounds, in is1DTrilinearFilterResultValid()
437 const Vec2& xBounds0, in is2DTrilinearFilterResultValid()
[all …]
DtcuTexCompareVerifier.cpp200 const Vec2& depths, in isLinearCompareValid()
201 const Vec2& fBounds, in isLinearCompareValid()
296 const Vec2& xBounds, in isBilinearPCFCompareValid()
297 const Vec2& yBounds, in isBilinearPCFCompareValid()
369 const Vec2& xBounds, in isBilinearCompareValid()
370 const Vec2& yBounds, in isBilinearCompareValid()
430 const Vec2& xBounds0, in isTrilinearPCFCompareValid()
431 const Vec2& yBounds0, in isTrilinearPCFCompareValid()
432 const Vec2& xBounds1, in isTrilinearPCFCompareValid()
433 const Vec2& yBounds1, in isTrilinearPCFCompareValid()
[all …]
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fMultisampleTests.cpp50 using tcu::Vec2;
65 Vec2 p0;
66 Vec2 p1;
67 Vec2 p2;
68 Vec2 p3;
70 …QuadCorners(const Vec2& p0_, const Vec2& p1_, const Vec2& p2_, const Vec2& p3_) : p0(p0_), p1(p1_)… in QuadCorners()
189 …void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& c0, const Ve…
190 void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& color) const;
191 …void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Vec4&…
192 …void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Vec4&…
[all …]
Des2fVertexTextureTests.cpp46 using tcu::Vec2;
109 static inline Vec2 safe2DTexCoords (const Vec2& raw, const IVec2& textureSize) in safe2DTexCoords()
111 return safeCoords(raw, textureSize, Vec2(0.5f)); in safe2DTexCoords()
149 Vec2 scale;
150 Vec2 bias;
152 TexTypeCoordParams (const Vec2& scale_, const Vec2& bias_) : scale(scale_), bias(bias_) {} in TexTypeCoordParams()
158 Vec2 scale;
159 Vec2 bias;
162 …TexTypeCoordParams (const Vec2& scale_, const Vec2& bias_, tcu::CubeFace face_) : scale(scale_), b… in TexTypeCoordParams()
197 …const float* getPositionPtr (void) const { DE_STATIC_ASSERT(sizeof(Vec2) == 2*sizeof(float)); … in getPositionPtr()
[all …]
Des2fTextureMipmapTests.cpp53 using tcu::Vec2;
191 Vec2 bottomLeft; in getBasicTexCoord2D()
192 Vec2 topRight; in getBasicTexCoord2D()
195 { Vec2(-0.1f, 0.1f), Vec2( 0.8f, 1.0f) }, in getBasicTexCoord2D()
196 { Vec2(-0.3f, -0.6f), Vec2( 0.7f, 0.4f) }, in getBasicTexCoord2D()
197 { Vec2(-0.3f, 0.6f), Vec2( 0.7f, -0.9f) }, in getBasicTexCoord2D()
198 { Vec2(-0.8f, 0.6f), Vec2( 0.7f, -0.9f) }, in getBasicTexCoord2D()
200 { Vec2(-0.5f, -0.5f), Vec2( 1.5f, 1.5f) }, in getBasicTexCoord2D()
201 { Vec2( 1.0f, -1.0f), Vec2(-1.3f, 1.0f) }, in getBasicTexCoord2D()
202 { Vec2( 1.2f, -1.0f), Vec2(-1.3f, 1.6f) }, in getBasicTexCoord2D()
[all …]
/third_party/vk-gl-cts/modules/gles3/accuracy/
Des3aTextureMipmapTests.cpp50 using tcu::Vec2;
179 Vec2 bottomLeft; in getBasicTexCoord2D()
180 Vec2 topRight; in getBasicTexCoord2D()
183 { Vec2(-0.1f, 0.1f), Vec2( 0.8f, 1.0f) }, in getBasicTexCoord2D()
184 { Vec2(-0.3f, -0.6f), Vec2( 0.7f, 0.4f) }, in getBasicTexCoord2D()
185 { Vec2(-0.3f, 0.6f), Vec2( 0.7f, -0.9f) }, in getBasicTexCoord2D()
186 { Vec2(-0.8f, 0.6f), Vec2( 0.7f, -0.9f) }, in getBasicTexCoord2D()
188 { Vec2(-0.5f, -0.5f), Vec2( 1.5f, 1.5f) }, in getBasicTexCoord2D()
189 { Vec2( 1.0f, -1.0f), Vec2(-1.3f, 1.0f) }, in getBasicTexCoord2D()
190 { Vec2( 1.2f, -1.0f), Vec2(-1.3f, 1.6f) }, in getBasicTexCoord2D()
[all …]
Des3aTextureFilteringTests.cpp231 computeQuadTexCoord2D(texCoord, tcu::Vec2(-4.0f, -4.5f), tcu::Vec2(4.0f, 2.5f)); in iterate()
242 computeQuadTexCoord2D(texCoord, tcu::Vec2(-0.5f, 0.75f), tcu::Vec2(0.25f, 1.25f)); in iterate()
271 computeQuadTexCoord2D(texCoord, tcu::Vec2(sMin, tMin), tcu::Vec2(sMin+sRange, tMin+tRange)); in iterate()
282 computeQuadTexCoord2D(texCoord, tcu::Vec2(-0.5f, 0.75f), tcu::Vec2(0.25f, 1.25f)); in iterate()
486 const tcu::Vec2& bottomLeft, in renderFaces()
487 const tcu::Vec2& topRight, in renderFaces()
488 const tcu::Vec2& texCoordTopRightFactor) in renderFaces()
576 m_onlySampleFaceInterior ? tcu::Vec2(-0.81f, -0.81f) : tcu::Vec2(-0.975f, -0.975f), in iterate()
577 m_onlySampleFaceInterior ? tcu::Vec2( 0.8f, 0.8f) : tcu::Vec2( 0.975f, 0.975f), in iterate()
578 !m_onlySampleFaceInterior ? tcu::Vec2(1.3f, 1.25f) : tcu::Vec2(1.0f, 1.0f)); in iterate()
[all …]
/third_party/vk-gl-cts/modules/gles2/accuracy/
Des2aTextureMipmapTests.cpp53 using tcu::Vec2;
188 Vec2 bottomLeft; in getBasicTexCoord2D()
189 Vec2 topRight; in getBasicTexCoord2D()
192 { Vec2(-0.1f, 0.1f), Vec2( 0.8f, 1.0f) }, in getBasicTexCoord2D()
193 { Vec2(-0.3f, -0.6f), Vec2( 0.7f, 0.4f) }, in getBasicTexCoord2D()
194 { Vec2(-0.3f, 0.6f), Vec2( 0.7f, -0.9f) }, in getBasicTexCoord2D()
195 { Vec2(-0.8f, 0.6f), Vec2( 0.7f, -0.9f) }, in getBasicTexCoord2D()
197 { Vec2(-0.5f, -0.5f), Vec2( 1.5f, 1.5f) }, in getBasicTexCoord2D()
198 { Vec2( 1.0f, -1.0f), Vec2(-1.3f, 1.0f) }, in getBasicTexCoord2D()
199 { Vec2( 1.2f, -1.0f), Vec2(-1.3f, 1.6f) }, in getBasicTexCoord2D()
[all …]
Des2aTextureFilteringTests.cpp241 computeQuadTexCoord2D(texCoord, tcu::Vec2(-4.0f, -4.5f), tcu::Vec2(4.0f, 2.5f)); in iterate()
252 computeQuadTexCoord2D(texCoord, tcu::Vec2(-0.5f, 0.75f), tcu::Vec2(0.25f, 1.25f)); in iterate()
281 computeQuadTexCoord2D(texCoord, tcu::Vec2(sMin, tMin), tcu::Vec2(sMin+sRange, tMin+tRange)); in iterate()
292 computeQuadTexCoord2D(texCoord, tcu::Vec2(-0.5f, 0.75f), tcu::Vec2(0.25f, 1.25f)); in iterate()
477 const tcu::Vec2& bottomLeft, in renderFaces()
478 const tcu::Vec2& topRight, in renderFaces()
479 const tcu::Vec2& texCoordTopRightFactor) in renderFaces()
567 tcu::Vec2(-0.81f, -0.81f), in iterate()
568 tcu::Vec2( 0.8f, 0.8f), in iterate()
569 tcu::Vec2(1.0f, 1.0f)); in iterate()
[all …]
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fMultisampleTests.cpp45 using tcu::Vec2;
141 tcu::Vec2 samplePos = tcu::Vec2(-1, -1); in iterate()
177 …void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& c0, const…
178 …void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& color) co…
179 …void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Ve…
180 …void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Ve…
346 void DefaultFBOMultisampleCase::renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, con… in renderTriangle()
354 void DefaultFBOMultisampleCase::renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, con… in renderTriangle()
359 void DefaultFBOMultisampleCase::renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const V… in renderQuad()
365 void DefaultFBOMultisampleCase::renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const V… in renderQuad()
[all …]
Des31fTextureFilteringTests.cpp139 tcu::Vec2 bottomLeft;
140 tcu::Vec2 topRight;
141 tcu::Vec2 layerRange;
148 …onst glu::TextureCubeArray* tex_, const tcu::Vec2& bottomLeft_, const tcu::Vec2& topRight_, const … in FilterCase()
285 …m_cases.push_back(FilterCase(tex0, tcu::Vec2(-0.8f, -0.8f), tcu::Vec2(0.8f, 0.8f), tcu::Vec2(-0.5… in init()
286 …m_cases.push_back(FilterCase(tex0, tcu::Vec2(0.5f, 0.65f), tcu::Vec2(0.8f, 0.8f), tcu::Vec2(-0.5f… in init()
287 …m_cases.push_back(FilterCase(tex1, tcu::Vec2(-0.8f, -0.8f), tcu::Vec2(0.8f, 0.8f), tcu::Vec2(floa… in init()
288 …m_cases.push_back(FilterCase(tex1, tcu::Vec2(0.2f, 0.2f), tcu::Vec2(0.6f, 0.5f), tcu::Vec2(float(… in init()
296 …m_cases.push_back(FilterCase(tex0, tcu::Vec2(-1.25f, -1.2f), tcu::Vec2(1.2f, 1.25f), tcu::Vec2(-0.… in init()
298 …m_cases.push_back(FilterCase(tex0, tcu::Vec2(-1.19f, -1.3f), tcu::Vec2(1.1f, 1.35f), tcu::Vec2(-0.… in init()
[all …]
Des31fShaderCommonFunctionTests.cpp50 using tcu::Vec2;
470 const Vec2 floatRanges[] = in getInputValues()
472 Vec2(-2.0f, 2.0f), // lowp in getInputValues()
473 Vec2(-1e3f, 1e3f), // mediump in getInputValues()
474 Vec2(-1e7f, 1e7f) // highp in getInputValues()
552 const Vec2 floatRanges[] = in getInputValues()
554 Vec2(-2.0f, 2.0f), // lowp in getInputValues()
555 Vec2(-1e4f, 1e4f), // mediump - note: may end up as inf in getInputValues()
556 Vec2(-1e8f, 1e8f) // highp - note: may end up as inf in getInputValues()
658 const Vec2 ranges[] = in getInputValues()
[all …]
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fMultisampleTests.cpp51 using tcu::Vec2;
67 Vec2 p0;
68 Vec2 p1;
69 Vec2 p2;
70 Vec2 p3;
72 …QuadCorners(const Vec2& p0_, const Vec2& p1_, const Vec2& p2_, const Vec2& p3_) : p0(p0_), p1(p1_)… in QuadCorners()
213 …void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& c0, const Ve…
214 void renderTriangle (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec4& color) const;
215 …void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Vec4&…
216 …void renderQuad (const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p3, const Vec4&…
[all …]
Des3fVertexTextureTests.cpp45 using tcu::Vec2;
126 static inline Vec2 safe2DTexCoords (const Vec2& raw, const IVec2& textureSize) in safe2DTexCoords()
128 return safeCoords(raw, textureSize, Vec2(0.5f)); in safe2DTexCoords()
182 Vec2 scale;
183 Vec2 bias;
185 TexTypeCoordParams (const Vec2& scale_, const Vec2& bias_) : scale(scale_), bias(bias_) {} in TexTypeCoordParams()
191 Vec2 scale;
192 Vec2 bias;
195 …TexTypeCoordParams (const Vec2& scale_, const Vec2& bias_, tcu::CubeFace face_) : scale(scale_), b… in TexTypeCoordParams()
246 …const float* getPositionPtr (void) const { DE_STATIC_ASSERT(sizeof(Vec2) == 2*sizeof(float)); … in getPositionPtr()
[all …]
Des3fShaderPackingFunctionTests.cpp136 std::vector<tcu::Vec2> inputs; in iterate()
143 inputs.push_back(tcu::Vec2(0.0f, 0.0f)); in iterate()
144 inputs.push_back(tcu::Vec2(-1.0f, 1.0f)); in iterate()
145 inputs.push_back(tcu::Vec2(0.5f, -0.5f)); in iterate()
146 inputs.push_back(tcu::Vec2(-1.5f, 1.5f)); in iterate()
147 inputs.push_back(tcu::Vec2(0.25f, -0.75f)); in iterate()
154 inputs.push_back(tcu::Vec2(x, y)); in iterate()
162 inputs.push_back(tcu::Vec2(x, y)); in iterate()
241 std::vector<tcu::Vec2> outputs; in iterate()
327 std::vector<tcu::Vec2> inputs; in iterate()
[all …]
Des3fShaderCommonFunctionTests.cpp46 using tcu::Vec2;
395 const Vec2 floatRanges[] = in getInputValues()
397 Vec2(-2.0f, 2.0f), // lowp in getInputValues()
398 Vec2(-1e3f, 1e3f), // mediump in getInputValues()
399 Vec2(-1e7f, 1e7f) // highp in getInputValues()
477 const Vec2 floatRanges[] = in getInputValues()
479 Vec2(-2.0f, 2.0f), // lowp in getInputValues()
480 Vec2(-1e4f, 1e4f), // mediump - note: may end up as inf in getInputValues()
481 Vec2(-1e8f, 1e8f) // highp - note: may end up as inf in getInputValues()
583 const Vec2 ranges[] = in getInputValues()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_query/
DvktRayQueryWatertightnessTests.cpp297 static inline tcu::Vec2 mixVec2 (const tcu::Vec2& a, const tcu::Vec2& b, const float alpha) in mixVec2()
299 const tcu::Vec2 result = a * alpha + b * (1.0f - alpha); in mixVec2()
304 static inline tcu::Vec2 mixCoordsVec2 (const tcu::Vec2& a, const tcu::Vec2& b, const float alpha, c… in mixCoordsVec2()
306 …const tcu::Vec2 result = tcu::Vec2(deFloatMix(a.x(), b.x(), alpha), deFloatMix(a.y(), b.y(), beta)… in mixCoordsVec2()
311 inline float triangleEdgeLength (const tcu::Vec2& vertexA, const tcu::Vec2& vertexB) in triangleEdgeLength()
1592 const std::vector<tcu::Vec2>& vertices,
1595 const std::vector<tcu::Vec2>& vertices,
1600 const std::vector<tcu::Vec2>& vertices, in chooseAABB()
1607 const tcu::Vec2& a = vertices[t.x()]; in chooseAABB()
1608 const tcu::Vec2& b = vertices[t.y()]; in chooseAABB()
[all …]
/third_party/vk-gl-cts/framework/opengl/
DgluTextureTestUtil.cpp1039 void computeQuadTexCoord2D (std::vector<float>& dst, const tcu::Vec2& bottomLeft, const tcu::Vec2& … in computeQuadTexCoord2D()
1049 …d2DArray (std::vector<float>& dst, int layerNdx, const tcu::Vec2& bottomLeft, const tcu::Vec2& top… in computeQuadTexCoord2DArray()
1144 …be (std::vector<float>& dst, tcu::CubeFace face, const tcu::Vec2& bottomLeft, const tcu::Vec2& top… in computeQuadTexCoordCube()
1184 …r<float>& dst, tcu::CubeFace face, const tcu::Vec2& bottomLeft, const tcu::Vec2& topRight, const t… in computeQuadTexCoordCubeArray()
1272 …const tcu::Vec2 lodBias ((sampleParams.flags & ReferenceParams::USE_BIAS) ? sampleParams… in computeTextureLookupDiff()
1276 const tcu::Vec2 lodOffsets[] = in computeTextureLookupDiff()
1278 tcu::Vec2(-1, 0), in computeTextureLookupDiff()
1279 tcu::Vec2(+1, 0), in computeTextureLookupDiff()
1280 tcu::Vec2( 0, -1), in computeTextureLookupDiff()
1281 tcu::Vec2( 0, +1), in computeTextureLookupDiff()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineMultisampleMixedAttachmentSamplesTests.cpp68 using tcu::Vec2;
442 std::vector<Vec2> ndcTransformEachSampleInPixel (const UVec2& framebufferSize, const deUint32 numSa… in ndcTransformEachSampleInPixel()
444 std::vector<Vec2> locations; in ndcTransformEachSampleInPixel()
450 const Vec2& sp = access(x, y, sampleNdx); in ndcTransformEachSampleInPixel()
455 locations.push_back(Vec2(-1.0f + 2.0f * (globalX / static_cast<float>(framebufferSize.x())), in ndcTransformEachSampleInPixel()
465 AccessStandardSampleLocationsArray (const Vec2* ptr) : m_pData (ptr) {} in AccessStandardSampleLocationsArray()
467 const Vec2& operator ()(const deUint32 x, const deUint32 y, const deUint32 sampleNdx) const in operator ()()
475 const Vec2* m_pData;
483 Vec2 operator ()(const deUint32 x, const deUint32 y, const deUint32 sampleNdx) const in operator ()()
486 return Vec2(sp.x, sp.y); in operator ()()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/
DvktSampleVerifierUtil.hpp47 tcu::Vec2 calcLodBounds (const tcu::Vec3& dPdx,
53 tcu::UVec2 calcLevelBounds (const tcu::Vec2& lodBounds,
56 tcu::Vec2 calcLevelLodBounds (const tcu::Vec2& lodBounds,
81 tcu::Vec2& coordFace,
82 tcu::Vec2& dPdxFace,
83 tcu::Vec2& dPdyFace);
/third_party/vk-gl-cts/modules/gles2/scripts/
Dgenutil.py226 def toVec2(self): return Vec2(self.x, self.x)
283 elif isinstance(val, Vec2):
284 return Vec2(self.x * val.x, self.x * val.y)
295 elif isinstance(val, Vec2):
296 return Vec2(self.x / val.x, self.x / val.y)
309 elif (len(lst) == 2): return Vec2(lst[0], lst[1])
331 class Vec2(Vec): class
337 def applyUnary(self, func): return Vec2(func(self.x), func(self.y))
338 def applyBinary(self, func, other): return Vec2(func(self.x, other.x), func(self.y, other.y))
342 def toVec2(self): return Vec2(self.x, self.y)
[all …]
/third_party/vk-gl-cts/modules/glshared/
DglsCalibration.cpp36 using tcu::Vec2;
60 LineParameters theilSenLinearRegression (const std::vector<tcu::Vec2>& dataPoints) in theilSenLinearRegression()
72 const Vec2& ptA = dataPoints[i]; in theilSenLinearRegression()
76 const Vec2& ptB = dataPoints[j]; in theilSenLinearRegression()
120 LineParametersWithConfidence theilSenSiegelLinearRegression (const std::vector<tcu::Vec2>& dataPoin… in theilSenSiegelLinearRegression()
135 const tcu::Vec2& ptA = dataPoints[i]; in theilSenSiegelLinearRegression()
142 const tcu::Vec2& ptB = dataPoints[j]; in theilSenSiegelLinearRegression()
351 vector<Vec2> dataPoints; in recomputeParameters()
355 …dataPoints.push_back(Vec2((float)m_calibrateIterations[i].numDrawCalls, m_calibrateIterations[i].f… in recomputeParameters()
359 …dataPoints.push_back(Vec2(0.0f, 0.0f)); // If there's just one measurement so far, this will help … in recomputeParameters()

12345678910