Home
last modified time | relevance | path

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

1234567891011

/external/llvm-project/llvm/unittests/ADT/
DPackedVectorTest.cpp33 PackedVector<unsigned, 2> Vec2(3); in TEST() local
34 EXPECT_EQ(3U, Vec2.size()); in TEST()
35 EXPECT_FALSE(Vec2.empty()); in TEST()
51 EXPECT_FALSE(Vec == Vec2); in TEST()
52 EXPECT_TRUE(Vec != Vec2); in TEST()
54 Vec = Vec2; in TEST()
55 EXPECT_TRUE(Vec == Vec2); in TEST()
56 EXPECT_FALSE(Vec != Vec2); in TEST()
59 Vec2[1] = 2; in TEST()
60 Vec |= Vec2; in TEST()
[all …]
/external/llvm/unittests/ADT/
DPackedVectorTest.cpp34 PackedVector<unsigned, 2> Vec2(3); in TEST() local
35 EXPECT_EQ(3U, Vec2.size()); in TEST()
36 EXPECT_FALSE(Vec2.empty()); in TEST()
52 EXPECT_FALSE(Vec == Vec2); in TEST()
53 EXPECT_TRUE(Vec != Vec2); in TEST()
55 Vec = Vec2; in TEST()
56 EXPECT_TRUE(Vec == Vec2); in TEST()
57 EXPECT_FALSE(Vec != Vec2); in TEST()
60 Vec2[1] = 2; in TEST()
61 Vec |= Vec2; in TEST()
[all …]
/external/deqp/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 …]
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.cpp194 const Vec2& depths, in isLinearCompareValid()
195 const Vec2& fBounds, in isLinearCompareValid()
290 const Vec2& xBounds, in isBilinearPCFCompareValid()
291 const Vec2& yBounds, in isBilinearPCFCompareValid()
363 const Vec2& xBounds, in isBilinearCompareValid()
364 const Vec2& yBounds, in isBilinearCompareValid()
424 const Vec2& xBounds0, in isTrilinearPCFCompareValid()
425 const Vec2& yBounds0, in isTrilinearPCFCompareValid()
426 const Vec2& xBounds1, in isTrilinearPCFCompareValid()
427 const Vec2& yBounds1, in isTrilinearPCFCompareValid()
[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…
59 … texture, const Sampler& sampler, const TexComparePrecision& prec, const Vec2& coord, const IVec2…
/external/deqp/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 …]
/external/deqp/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 …]
/external/deqp/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 …]
/external/tensorflow/tensorflow/lite/delegates/gpu/common/
Dtypes.h135 struct alignas(sizeof(T)) Vec2 { struct
143 Vec2() : Vec2(T(0.0f)) {} in Vec2() function
146 Vec2(S x_, S y_) : x(x_), y(y_) {} in Vec2() function
147 explicit Vec2(T v) : x(v), y(v) {} in Vec2() function
150 explicit Vec2(S v) : x(v), y(v) {} in Vec2() argument
152 Vec2(const Vec2& f) : x(f.x), y(f.y) {} in Vec2() argument
155 Vec2(const Vec2<S>& f) : x(f.x), y(f.y) {} in Vec2() argument
157 Vec2& operator=(const Vec2& other) {
163 bool operator==(const Vec2& value) const {
167 bool operator!=(const Vec2& value) const {
[all …]
/external/deqp/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()
282 …m_cases.push_back(FilterCase(tex0, tcu::Vec2(-0.8f, -0.8f), tcu::Vec2(0.8f, 0.8f), tcu::Vec2(-0.5… in init()
283 …m_cases.push_back(FilterCase(tex0, tcu::Vec2(0.5f, 0.65f), tcu::Vec2(0.8f, 0.8f), tcu::Vec2(-0.5f… in init()
284 …m_cases.push_back(FilterCase(tex1, tcu::Vec2(-0.8f, -0.8f), tcu::Vec2(0.8f, 0.8f), tcu::Vec2(floa… in init()
285 …m_cases.push_back(FilterCase(tex1, tcu::Vec2(0.2f, 0.2f), tcu::Vec2(0.6f, 0.5f), tcu::Vec2(float(… in init()
293 …m_cases.push_back(FilterCase(tex0, tcu::Vec2(-1.25f, -1.2f), tcu::Vec2(1.2f, 1.25f), tcu::Vec2(-0.… in init()
295 …m_cases.push_back(FilterCase(tex0, tcu::Vec2(-1.19f, -1.3f), tcu::Vec2(1.1f, 1.35f), tcu::Vec2(-0.… in init()
[all …]
/external/deqp/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 …]
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 …]
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 …]
/external/deqp/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()
1594 const std::vector<tcu::Vec2>& vertices,
1597 const std::vector<tcu::Vec2>& vertices,
1602 const std::vector<tcu::Vec2>& vertices, in chooseAABB()
1609 const tcu::Vec2& a = vertices[t.x()]; in chooseAABB()
1610 const tcu::Vec2& b = vertices[t.y()]; in chooseAABB()
[all …]
/external/clang/test/CodeGen/
Darm_function_epilog.cpp4 struct Vec2 { struct
12 Vec2 getVec2() { in getVec2()
13 Vec2 out; in getVec2()
14 union { Vec2* v; unsigned char* u; } x; in getVec2()
/external/llvm-project/clang/test/CodeGen/
Darm_function_epilog.cpp4 struct Vec2 { struct
12 Vec2 getVec2() { in getVec2()
13 Vec2 out; in getVec2()
14 union { Vec2* v; unsigned char* u; } x; in getVec2()
/external/deqp/framework/opengl/
DgluTextureTestUtil.cpp1019 void computeQuadTexCoord2D (std::vector<float>& dst, const tcu::Vec2& bottomLeft, const tcu::Vec2& … in computeQuadTexCoord2D()
1029 …d2DArray (std::vector<float>& dst, int layerNdx, const tcu::Vec2& bottomLeft, const tcu::Vec2& top… in computeQuadTexCoord2DArray()
1124 …be (std::vector<float>& dst, tcu::CubeFace face, const tcu::Vec2& bottomLeft, const tcu::Vec2& top… in computeQuadTexCoordCube()
1164 …r<float>& dst, tcu::CubeFace face, const tcu::Vec2& bottomLeft, const tcu::Vec2& topRight, const t… in computeQuadTexCoordCubeArray()
1252 …const tcu::Vec2 lodBias ((sampleParams.flags & ReferenceParams::USE_BIAS) ? sampleParams… in computeTextureLookupDiff()
1256 const tcu::Vec2 lodOffsets[] = in computeTextureLookupDiff()
1258 tcu::Vec2(-1, 0), in computeTextureLookupDiff()
1259 tcu::Vec2(+1, 0), in computeTextureLookupDiff()
1260 tcu::Vec2( 0, -1), in computeTextureLookupDiff()
1261 tcu::Vec2( 0, +1), in computeTextureLookupDiff()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineMultisampleMixedAttachmentSamplesTests.cpp68 using tcu::Vec2;
433 std::vector<Vec2> ndcTransformEachSampleInPixel (const UVec2& framebufferSize, const deUint32 numSa… in ndcTransformEachSampleInPixel()
435 std::vector<Vec2> locations; in ndcTransformEachSampleInPixel()
441 const Vec2& sp = access(x, y, sampleNdx); in ndcTransformEachSampleInPixel()
446 locations.push_back(Vec2(-1.0f + 2.0f * (globalX / static_cast<float>(framebufferSize.x())), in ndcTransformEachSampleInPixel()
456 AccessStandardSampleLocationsArray (const Vec2* ptr) : m_pData (ptr) {} in AccessStandardSampleLocationsArray()
458 const Vec2& operator ()(const deUint32 x, const deUint32 y, const deUint32 sampleNdx) const in operator ()()
466 const Vec2* m_pData;
474 Vec2 operator ()(const deUint32 x, const deUint32 y, const deUint32 sampleNdx) const in operator ()()
477 return Vec2(sp.x, sp.y); in operator ()()
[all …]
/external/deqp/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);

1234567891011