Home
last modified time | relevance | path

Searched refs:texCoords (Results 1 – 25 of 53) sorted by relevance

123

/external/skia/src/utils/
DSkPatchGrid.cpp33 const SkPoint texCoords[4]) { in setPatch()
69 if ((fModeFlags & kTexs_VertexType) && texCoords) { in setPatch()
70 fTexCoords[cornerPos] = texCoords[0]; in setPatch()
71 fTexCoords[cornerPos + 1] = texCoords[1]; in setPatch()
72 fTexCoords[cornerPos + (fCols + 1)] = texCoords[3]; in setPatch()
73 fTexCoords[cornerPos + (fCols + 1) + 1] = texCoords[2]; in setPatch()
80 SkPoint texCoords[4]) const { in getPatch()
112 if ((fModeFlags & kTexs_VertexType) && texCoords) { in getPatch()
113 texCoords[0] = fTexCoords[cornerPos]; in getPatch()
114 texCoords[1] = fTexCoords[cornerPos + 1]; in getPatch()
[all …]
DSkPatchUtils.cpp173 const SkColor colors[4], const SkPoint texCoords[4], int lodX, int lodY) { in getVertexData()
215 if (texCoords) { in getVertexData()
283 if (texCoords) { in getVertexData()
285 bilerp(u, v, texCoords[kTopLeft_Corner].x(), in getVertexData()
286 texCoords[kTopRight_Corner].x(), in getVertexData()
287 texCoords[kBottomLeft_Corner].x(), in getVertexData()
288 texCoords[kBottomRight_Corner].x()), in getVertexData()
289 bilerp(u, v, texCoords[kTopLeft_Corner].y(), in getVertexData()
290 texCoords[kTopRight_Corner].y(), in getVertexData()
291 texCoords[kBottomLeft_Corner].y(), in getVertexData()
[all …]
DSkPatchGrid.h103 const SkPoint texCoords[4]);
111 bool getPatch(int x, int y, SkPoint cubics[12], SkColor colors[4], SkPoint texCoords[4]) const;
DSkDumpCanvas.cpp466 const SkPoint texCoords[4], SkXfermode* xmode, in onDrawPatch()
481 texCoords[0].x(), texCoords[0].y(), texCoords[1].x(), texCoords[1].y(), in onDrawPatch()
482 texCoords[2].x(), texCoords[2].y(), texCoords[3].x(), texCoords[3].y()); in onDrawPatch()
DSkPatchUtils.h117 const SkColor colors[4], const SkPoint texCoords[4],
DSkPaintFilterCanvas.cpp159 const SkPoint texCoords[], SkXfermode* xmode, in onDrawPatch() argument
163 this->INHERITED::onDrawPatch(cubics, colors, texCoords, xmode, *apf.paint()); in onDrawPatch()
DSkNWayCanvas.cpp287 const SkPoint texCoords[4], SkXfermode* xmode, in onDrawPatch()
291 iter->drawPatch(cubics, colors, texCoords, xmode, paint); in onDrawPatch()
/external/mesa3d/src/gallium/drivers/i915/
Di915_state_derived.c62 boolean texCoords[I915_TEX_UNITS], colors[2], fog, needW, face; in calculate_vertex_layout() local
66 memset(texCoords, 0, sizeof(texCoords)); in calculate_vertex_layout()
78 texCoords[find_mapping(fs, unit)] = TRUE; in calculate_vertex_layout()
90 texCoords[find_mapping(fs, unit)] = TRUE; in calculate_vertex_layout()
147 if (texCoords[i]) { in calculate_vertex_layout()
/external/deqp/modules/gles2/functional/
Des2fTextureUnitTests.cpp480 const tcu::Vec2 texCoords[4] = in shadeFragments() local
493 (m_transformations[unitNdx] * Vec3(texCoords[0].x(), texCoords[0].y(), 1.0f)).xy(), in shadeFragments()
494 (m_transformations[unitNdx] * Vec3(texCoords[1].x(), texCoords[1].y(), 1.0f)).xy(), in shadeFragments()
495 (m_transformations[unitNdx] * Vec3(texCoords[2].x(), texCoords[2].y(), 1.0f)).xy(), in shadeFragments()
496 (m_transformations[unitNdx] * Vec3(texCoords[3].x(), texCoords[3].y(), 1.0f)).xy(), in shadeFragments()
509 m_transformations[unitNdx] * Vec3(texCoords[0].x(), texCoords[0].y(), 1.0f), in shadeFragments()
510 m_transformations[unitNdx] * Vec3(texCoords[1].x(), texCoords[1].y(), 1.0f), in shadeFragments()
511 m_transformations[unitNdx] * Vec3(texCoords[2].x(), texCoords[2].y(), 1.0f), in shadeFragments()
512 m_transformations[unitNdx] * Vec3(texCoords[3].x(), texCoords[3].y(), 1.0f), in shadeFragments()
Des2fTextureSpecificationTests.cpp210 tcu::Vec2 texCoords[4]; in shadeFragments() local
219 texCoords[fragNdx] = tcu::Vec2(coord.x(), coord.y()); in shadeFragments()
223 m_uniforms[0].sampler.tex2D->sample4(colors, texCoords); in shadeFragments()
292 tcu::Vec3 texCoords[4]; in shadeFragments() local
307 case tcu::CUBEFACE_NEGATIVE_X: texCoords[fragNdx] = tcu::Vec3(-1.0f, -y, +x); break; in shadeFragments()
308 case tcu::CUBEFACE_POSITIVE_X: texCoords[fragNdx] = tcu::Vec3(+1.0f, -y, -x); break; in shadeFragments()
309 case tcu::CUBEFACE_NEGATIVE_Y: texCoords[fragNdx] = tcu::Vec3( +x, -1.0f, -y); break; in shadeFragments()
310 case tcu::CUBEFACE_POSITIVE_Y: texCoords[fragNdx] = tcu::Vec3( +x, +1.0f, +y); break; in shadeFragments()
311 case tcu::CUBEFACE_NEGATIVE_Z: texCoords[fragNdx] = tcu::Vec3( -x, -y, -1.0f); break; in shadeFragments()
312 case tcu::CUBEFACE_POSITIVE_Z: texCoords[fragNdx] = tcu::Vec3( +x, -y, +1.0f); break; in shadeFragments()
[all …]
/external/skia/bench/
DPatchGridBench.cpp73 SkPoint texCoords[4][5] = { in setGrid() local
127 texs[0] = texCoords[i][j]; in setGrid()
128 texs[1] = texCoords[i][j + 1]; in setGrid()
129 texs[3] = texCoords[i + 1][j]; in setGrid()
130 texs[2] = texCoords[i + 1][j + 1]; in setGrid()
DPatchBench.cpp65 const SkPoint texCoords[SkPatchUtils::kNumCorners] = { in setTexCoords() local
68 memcpy(fTexCoords, texCoords, SkPatchUtils::kNumCorners * sizeof(SkPoint)); in setTexCoords()
/external/opencv3/samples/gpu/
Dopengl.cpp83 Mat_<Vec2f> texCoords(1, 4); in main() local
84 texCoords << Vec2f(0, 0), Vec2f(0, 1), Vec2f(1, 1), Vec2f(1, 0); in main()
92 data.arr.setTexCoordArray(texCoords); in main()
/external/skia/src/gpu/batches/
DGrDrawVerticesBatch.cpp257 SkTArray<SkPoint>* texCoords, bool hasTexCoords, in randomize_params() argument
263 texCoords->push_back(random_point(random, min, max)); in randomize_params()
281 SkTArray<SkPoint> texCoords; in DRAW_BATCH_TEST_DEFINE() local
296 &texCoords, hasTexCoords, in DRAW_BATCH_TEST_DEFINE()
304 &texCoords, hasTexCoords, in DRAW_BATCH_TEST_DEFINE()
322 texCoords.begin(), in DRAW_BATCH_TEST_DEFINE()
/external/skia/gm/
Dpatch.cpp85 const SkPoint texCoords[SkPatchUtils::kNumCorners] = { variable
113 canvas->drawPatch(cubics, nullptr, texCoords, xfer, paint);
118 canvas->drawPatch(cubics, colors, texCoords, xfer, paint);
/external/deqp/modules/gles3/functional/
Des3fFboTestUtil.cpp376 tcu::Vec2 texCoords[4]; in shadeFragments() local
385 texCoords[fragNdx] = tcu::Vec2(coord.x(), coord.y()); in shadeFragments()
400 tex->sample4(tmpColors, texCoords); in shadeFragments()
530 tcu::Vec3 texCoords[4]; in shadeFragments() local
540 texCoords[fragNdx] = tcu::Vec3(coord.x(), coord.y(), coord.z()); in shadeFragments()
543 tex->sample4(colors, texCoords); in shadeFragments()
638 tcu::Vec3 texCoords[4]; in shadeFragments() local
648 texCoords[fragNdx] = tcu::Vec3(coord.x(), coord.y(), float(layer)); in shadeFragments()
651 tex->sample4(colors, texCoords); in shadeFragments()
746 tcu::Vec3 texCoords[4]; in shadeFragments() local
[all …]
Des3fTextureUnitTests.cpp636 const tcu::Vec2 texCoords[4] = in shadeFragments() local
647 (m_transformations[unitNdx] * Vec4(texCoords[0].x(), texCoords[0].y(), 1.0f, 1.0f)).xyz(), in shadeFragments()
648 (m_transformations[unitNdx] * Vec4(texCoords[1].x(), texCoords[1].y(), 1.0f, 1.0f)).xyz(), in shadeFragments()
649 (m_transformations[unitNdx] * Vec4(texCoords[2].x(), texCoords[2].y(), 1.0f, 1.0f)).xyz(), in shadeFragments()
650 (m_transformations[unitNdx] * Vec4(texCoords[3].x(), texCoords[3].y(), 1.0f, 1.0f)).xyz(), in shadeFragments()
/external/deqp/modules/gles31/functional/
Des31fTextureGatherTests.cpp487 static inline void computeTexCoordVecs (const vector<float>& texCoords, tcu::Vector<float, N> (&dst… in computeTexCoordVecs() argument
489 DE_ASSERT((int)texCoords.size() == 4*N); in computeTexCoordVecs()
492 dst[i][j] = texCoords[i*N + j]; in computeTexCoordVecs()
575 const TexCoordT (&texCoords)[4], in verifyGatherOffsets()
599 const TexCoordT texCoord = triQuadInterpolate(texCoords, viewportCoord.x(), viewportCoord.y()); in verifyGatherOffsets()
655 const TexCoordT (&texCoords)[4], in verifyGatherOffsetsCompare()
677 const TexCoordT texCoord = triQuadInterpolate(texCoords, viewportCoord.x(), viewportCoord.y()); in verifyGatherOffsetsCompare()
1452 const TexCoordT (&texCoords)[4], in verify()
1502 …return verifyGatherOffsetsCompare(log, rendered, texture, texCoords, sampler, comparePrec, PixelCo… in verify()
1515 …return verifyGatherOffsets<float>(log, rendered, texture, texCoords, sampler, lookupPrec, componen… in verify()
[all …]
Des31fFboTestUtil.cpp219 tcu::Vec2 texCoords[4]; in shadeFragments() local
228 texCoords[fragNdx] = tcu::Vec2(coord.x(), coord.y()); in shadeFragments()
243 tex->sample4(tmpColors, texCoords); in shadeFragments()
384 tcu::Vec4 texCoords[4]; in shadeFragments() local
394 texCoords[fragNdx] = tcu::Vec4(coord.x(), coord.y(), coord.z(), (float)m_layer); in shadeFragments()
397 tex->sample4(colors, texCoords); in shadeFragments()
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineReferenceRenderer.cpp293 std::vector<tcu::Vec4> texCoords; in draw() local
299 texCoords.push_back(v.texCoord); in draw()
311 vertexAttribs[1].pointer = texCoords.data(); in draw()
/external/skia/samplecode/
DPerlinPatch.cpp138 const SkPoint texCoords[SkPatchUtils::kNumCorners] = { in onDrawContent() local
153 canvas->drawPatch(fPts, nullptr, texCoords, xfer, paint); in onDrawContent()
/external/skia/src/core/
DSkRecorder.cpp314 const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint& paint) { in onDrawPatch()
318 texCoords ? this->copy(texCoords, SkPatchUtils::kNumCorners) : nullptr, in onDrawPatch()
/external/opencv3/samples/cpp/
Ddetect_mser.cpp227 Mat_<Vec2f> texCoords(1, img.cols*img.rows); in DrawOpenGLMSER() local
235 texCoords.at< Vec2f>(0, nbPix) = Vec2f(x, y); in DrawOpenGLMSER()
257 data->arr.setTexCoordArray(texCoords); in DrawOpenGLMSER()
/external/skia/include/utils/
DSkPaintFilterCanvas.h86 const SkPoint texCoords[4], SkXfermode* xmode,
DSkNWayCanvas.h53 const SkPoint texCoords[4], SkXfermode* xmode,

123