Home
last modified time | relevance | path

Searched refs:texCoords (Results 1 - 25 of 88) sorted by relevance

1234

/third_party/skia/src/core/
H A DSkDraw_vertices.cpp317 const SkPoint* texCoords = info.texCoords(); in drawFixedVertices() local
324 if (!texCoords) { in drawFixedVertices()
325 texCoords = positions; in drawFixedVertices()
328 texCoords = nullptr; in drawFixedVertices()
333 if (colors && texCoords) { in drawFixedVertices()
339 texCoords = nullptr; in drawFixedVertices()
346 // There is a paintShader iff there is texCoords. in drawFixedVertices()
347 SkASSERT((texCoords != nullptr) == (paintShader != nullptr)); in drawFixedVertices()
375 if (!texCoords) { // onl in drawFixedVertices()
[all...]
H A DSkVerticesPriv.h33 const SkPoint* texCoords() const { return fVertices->fTexs; } in texCoords() function in SkVerticesPriv
H A DSkVertices.cpp179 SkPoint* SkVertices::Builder::texCoords() { in texCoords() function in SkVertices::Builder
212 sk_careful_memcpy(builder.texCoords(), texs, sizes.fTSize); in MakeCopy()
338 buffer.readByteArray(builder.texCoords(), sizes.fTSize); in Decode()
/third_party/skia/tests/
H A DVerticesTest.cpp31 if (!!v0.texCoords() != !!v1.texCoords()) { in equal()
42 if (v0.texCoords()) { in equal()
43 if (v0.texCoords()[i] != v1.texCoords()[i]) { in equal()
94 if (builder.texCoords()) { in DEF_TEST()
95 builder.texCoords()[i].set(x, 2); in DEF_TEST()
/third_party/skia/third_party/externals/spirv-tools/test/opt/
H A Dinline_opaque_test.cpp35 OpEntryPoint Fragment %main "main" %outColor %texCoords in TEST_F()
48 OpName %texCoords "texCoords" in TEST_F()
76 %texCoords = OpVariable %_ptr_Input_v2float Input in TEST_F()
84 %30 = OpLoad %v2float %texCoords in TEST_F()
102 %30 = OpLoad %v2float %texCoords in TEST_F()
147 OpEntryPoint Fragment %main "main" %texCoords %outColor
152 OpName %texCoords "texCoords"
165 %texCoords
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/
H A Dinline_opaque_test.cpp35 OpEntryPoint Fragment %main "main" %outColor %texCoords in TEST_F()
48 OpName %texCoords "texCoords" in TEST_F()
76 %texCoords = OpVariable %_ptr_Input_v2float Input in TEST_F()
84 %30 = OpLoad %v2float %texCoords in TEST_F()
102 %30 = OpLoad %v2float %texCoords in TEST_F()
147 OpEntryPoint Fragment %main "main" %texCoords %outColor
152 OpName %texCoords "texCoords"
165 %texCoords
[all...]
/third_party/spirv-tools/test/opt/
H A Dinline_opaque_test.cpp35 OpEntryPoint Fragment %main "main" %outColor %texCoords in TEST_F()
48 OpName %texCoords "texCoords" in TEST_F()
76 %texCoords = OpVariable %_ptr_Input_v2float Input in TEST_F()
84 %30 = OpLoad %v2float %texCoords in TEST_F()
102 %30 = OpLoad %v2float %texCoords in TEST_F()
147 OpEntryPoint Fragment %main "main" %texCoords %outColor
152 OpName %texCoords "texCoords"
165 %texCoords
[all...]
/third_party/skia/src/gpu/ops/
H A DLatticeOp.cpp294 SkRect texCoords; variable
296 coords.store(&texCoords);
300 VertexWriter::TriStripFromRect(texCoords),
312 << SkPoint::Make(texCoords.fLeft, texCoords.fTop)
316 << SkPoint::Make(texCoords.fLeft, texCoords.fBottom)
320 << SkPoint::Make(texCoords.fRight, texCoords.fTop)
324 << SkPoint::Make(texCoords
[all...]
H A DDrawVerticesOp.cpp454 const SkPoint* localCoords = info.texCoords() ? info.texCoords() : positions; in onPrepareDraws()
669 SkTArray<SkPoint>* texCoords, bool hasTexCoords,
675 texCoords->push_back(random_point(random, min, max));
701 SkTArray<SkPoint> texCoords;
714 &positions, &texCoords, hasTexCoords, &colors, hasColors, &indices,
719 random, &positions, &texCoords, hasTexCoords, &colors, hasColors, &indices,
729 texCoords.begin(), colors.begin(),
/third_party/typescript/tests/baselines/reference/
H A DparserErrorRecoveryArrayLiteralExpression3.js2 var texCoords = [2, 2, 0.5000001192092895, 0.8749999 ; 403953552, 0.5000001192092895, 0.8749999403953552]; variable
6 var texCoords = [2, 2, 0.5000001192092895, 0.8749999]; variable
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/
H A DvktTextureConversionTests.cpp70 const std::vector<float>& texCoords) const;
153 bool SnormLinearClampInstance::verifyPixels (const tcu::PixelBufferAccess& rendered, const tcu::PixelBufferAccess& reference, const ReferenceParams& samplerParams, const std::vector<float>& texCoords) const in verifyPixels()
179 m_swTexture, texCoords.data(), samplerParams, in verifyPixels()
222 std::vector<float> texCoords (8); in iterate()
243 computeQuadTexCoord2D(texCoords, tcu::Vec2(0.0f), tcu::Vec2(1.0f)); in iterate()
246 m_renderer.renderQuad(rendered, 0, texCoords.data(), samplerParams); in iterate()
249 sampleTexture(reference, m_swTexture, texCoords.data(), samplerParams); in iterate()
251 return verifyPixels(rendered, reference, samplerParams, texCoords) in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/texture/
H A DvktTextureConversionTests.cpp70 const std::vector<float>& texCoords) const;
153 bool SnormLinearClampInstance::verifyPixels (const tcu::PixelBufferAccess& rendered, const tcu::PixelBufferAccess& reference, const ReferenceParams& samplerParams, const std::vector<float>& texCoords) const in verifyPixels()
179 m_swTexture, texCoords.data(), samplerParams, in verifyPixels()
222 std::vector<float> texCoords (8); in iterate()
243 computeQuadTexCoord2D(texCoords, tcu::Vec2(0.0f), tcu::Vec2(1.0f)); in iterate()
246 m_renderer.renderQuad(rendered, 0, texCoords.data(), samplerParams); in iterate()
249 sampleTexture(reference, m_swTexture, texCoords.data(), samplerParams); in iterate()
251 return verifyPixels(rendered, reference, samplerParams, texCoords) in iterate()
/third_party/skia/docs/examples/
H A DCanvas_drawPatch_2_b.cpp14 SkPoint texCoords[] = { { 0, 0 }, { 0, 62}, { 62, 62}, { 62, 0 } }; in REG_FIDDLE() local
17 canvas->drawPatch(cubics, nullptr, texCoords, paint); in REG_FIDDLE()
H A Ddraw_patch.cpp18 const SkPoint texCoords[] = { in REG_FIDDLE() local
20 canvas->drawPatch(cubics, nullptr, texCoords, SkBlendMode::kSrcOver, p); in REG_FIDDLE()
H A DCanvas_drawPatch.cpp15 SkPoint texCoords[] = { { -30, -30 }, { 162, -30}, { 162, 162}, { -30, 162} }; in REG_FIDDLE() local
19 canvas->drawPatch(cubics, colors, texCoords, blend, paint); in REG_FIDDLE()
/third_party/vk-gl-cts/modules/gles2/functional/
H A Des2fTextureUnitTests.cpp481 const tcu::Vec2 texCoords[4] = in shadeFragments() local
494 (m_transformations[unitNdx] * Vec3(texCoords[0].x(), texCoords[0].y(), 1.0f)).xy(), in shadeFragments()
495 (m_transformations[unitNdx] * Vec3(texCoords[1].x(), texCoords[1].y(), 1.0f)).xy(), in shadeFragments()
496 (m_transformations[unitNdx] * Vec3(texCoords[2].x(), texCoords[2].y(), 1.0f)).xy(), in shadeFragments()
497 (m_transformations[unitNdx] * Vec3(texCoords[3].x(), texCoords[3].y(), 1.0f)).xy(), in shadeFragments()
510 m_transformations[unitNdx] * Vec3(texCoords[ in shadeFragments()
[all...]
/third_party/vk-gl-cts/modules/gles31/functional/
H A Des31fTextureGatherTests.cpp504 static inline void computeTexCoordVecs (const vector<float>& texCoords, tcu::Vector<float, N> (&dst)[4]) in computeTexCoordVecs() argument
506 DE_ASSERT((int)texCoords.size() == 4*N); in computeTexCoordVecs()
509 dst[i][j] = texCoords[i*N + j]; in computeTexCoordVecs()
592 const TexCoordT (&texCoords)[4], in verifyGatherOffsets()
616 const TexCoordT texCoord = triQuadInterpolate(texCoords, viewportCoord.x(), viewportCoord.y()); in verifyGatherOffsets()
672 const TexCoordT (&texCoords)[4], in verifyGatherOffsetsCompare()
694 const TexCoordT texCoord = triQuadInterpolate(texCoords, viewportCoord.x(), viewportCoord.y()); in verifyGatherOffsetsCompare()
1477 const TexCoordT (&texCoords)[4], in verify()
1527 return verifyGatherOffsetsCompare(log, rendered, texture, texCoords, sampler, comparePrec, PixelCompareRefZDefault(RENDER_SIZE), *pixelOffsets); in verify()
1540 return verifyGatherOffsets<float>(log, rendered, texture, texCoords, sample in verify()
589 verifyGatherOffsets(TestLog& log, const ConstPixelBufferAccess& result, const TexViewT& texture, const TexCoordT (&texCoords)[4], const tcu::Sampler& sampler, const PrecType& lookupPrec, int componentNdx, const PixelOffsets& getPixelOffsets) verifyGatherOffsets() argument
669 verifyGatherOffsetsCompare(TestLog& log, const ConstPixelBufferAccess& result, const TexViewT& texture, const TexCoordT (&texCoords)[4], const tcu::Sampler& sampler, const tcu::TexComparePrecision& compPrec, const PixelCompareRefZ& getPixelRefZ, const PixelOffsets& getPixelOffsets) verifyGatherOffsetsCompare() argument
1475 verify(const ConstPixelBufferAccess& rendered, const TexViewT& texture, const TexCoordT (&texCoords)[4], const GatherArgs& gatherArgs) const verify() argument
[all...]
H A 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()
390 tcu::Vec4 texCoords[4]; in shadeFragments() local
400 texCoords[fragNdx] = tcu::Vec4(coord.x(), coord.y(), coord.z(), (float)m_layer); in shadeFragments()
403 tex->sample4(colors, texCoords); in shadeFragments()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/
H A DvktShaderRenderTextureGatherTests.cpp535 static inline void computeTexCoordVecs (const vector<float>& texCoords, tcu::Vector<float, N> (&dst)[4]) in computeTexCoordVecs() argument
537 DE_ASSERT((int)texCoords.size() == 4*N); in computeTexCoordVecs()
540 dst[i][j] = texCoords[i*N + j]; in computeTexCoordVecs()
623 const TexCoordT (&texCoords)[4], in verifyGatherOffsets()
647 const TexCoordT texCoord = triQuadInterpolate(texCoords, viewportCoord.x(), viewportCoord.y()); in verifyGatherOffsets()
703 const TexCoordT (&texCoords)[4], in verifyGatherOffsetsCompare()
725 const TexCoordT texCoord = triQuadInterpolate(texCoords, viewportCoord.x(), viewportCoord.y()); in verifyGatherOffsetsCompare()
1443 const TexCoordT (&texCoords)[4], in verify()
1479 return verifyGatherOffsetsCompare(log, rendered, texture, texCoords, sampler, comparePrec, PixelCompareRefZDefault(RENDER_SIZE), *pixelOffsets); in verify()
1492 return verifyGatherOffsets<float>(log, rendered, texture, texCoords, sample in verify()
620 verifyGatherOffsets(TestLog& log, const ConstPixelBufferAccess& result, const TexViewT& texture, const TexCoordT (&texCoords)[4], const tcu::Sampler& sampler, const PrecType& lookupPrec, int componentNdx, const PixelOffsets& getPixelOffsets) verifyGatherOffsets() argument
700 verifyGatherOffsetsCompare(TestLog& log, const ConstPixelBufferAccess& result, const TexViewT& texture, const TexCoordT (&texCoords)[4], const tcu::Sampler& sampler, const tcu::TexComparePrecision& compPrec, const PixelCompareRefZ& getPixelRefZ, const PixelOffsets& getPixelOffsets) verifyGatherOffsetsCompare() argument
1441 verify(const ConstPixelBufferAccess& rendered, const TexViewT& texture, const TexCoordT (&texCoords)[4], const GatherArgs& gatherArgs) const verify() argument
1946 Vec2 texCoords[4]; verify() local
1947 computeTexCoordVecs(computeQuadTexCoord(iterationNdx), texCoords); verify() local
2172 Vec3 texCoords[4]; verify() local
2173 computeTexCoordVecs(computeQuadTexCoord(iterationNdx), texCoords); verify() local
2401 Vec3 texCoords[4]; verify() local
2402 computeTexCoordVecs(computeQuadTexCoord(iterationNdx), texCoords); verify() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderrender/
H A DvktShaderRenderTextureGatherTests.cpp535 static inline void computeTexCoordVecs (const vector<float>& texCoords, tcu::Vector<float, N> (&dst)[4]) in computeTexCoordVecs() argument
537 DE_ASSERT((int)texCoords.size() == 4*N); in computeTexCoordVecs()
540 dst[i][j] = texCoords[i*N + j]; in computeTexCoordVecs()
623 const TexCoordT (&texCoords)[4], in verifyGatherOffsets()
647 const TexCoordT texCoord = triQuadInterpolate(texCoords, viewportCoord.x(), viewportCoord.y()); in verifyGatherOffsets()
703 const TexCoordT (&texCoords)[4], in verifyGatherOffsetsCompare()
725 const TexCoordT texCoord = triQuadInterpolate(texCoords, viewportCoord.x(), viewportCoord.y()); in verifyGatherOffsetsCompare()
1455 const TexCoordT (&texCoords)[4], in verify()
1491 return verifyGatherOffsetsCompare(log, rendered, texture, texCoords, sampler, comparePrec, PixelCompareRefZDefault(RENDER_SIZE), *pixelOffsets); in verify()
1504 return verifyGatherOffsets<float>(log, rendered, texture, texCoords, sample in verify()
620 verifyGatherOffsets(TestLog& log, const ConstPixelBufferAccess& result, const TexViewT& texture, const TexCoordT (&texCoords)[4], const tcu::Sampler& sampler, const PrecType& lookupPrec, int componentNdx, const PixelOffsets& getPixelOffsets) verifyGatherOffsets() argument
700 verifyGatherOffsetsCompare(TestLog& log, const ConstPixelBufferAccess& result, const TexViewT& texture, const TexCoordT (&texCoords)[4], const tcu::Sampler& sampler, const tcu::TexComparePrecision& compPrec, const PixelCompareRefZ& getPixelRefZ, const PixelOffsets& getPixelOffsets) verifyGatherOffsetsCompare() argument
1453 verify(const ConstPixelBufferAccess& rendered, const TexViewT& texture, const TexCoordT (&texCoords)[4], const GatherArgs& gatherArgs) const verify() argument
1958 Vec2 texCoords[4]; verify() local
1959 computeTexCoordVecs(computeQuadTexCoord(iterationNdx), texCoords); verify() local
2186 Vec3 texCoords[4]; verify() local
2187 computeTexCoordVecs(computeQuadTexCoord(iterationNdx), texCoords); verify() local
2417 Vec3 texCoords[4]; verify() local
2418 computeTexCoordVecs(computeQuadTexCoord(iterationNdx), texCoords); verify() local
[all...]
/third_party/vk-gl-cts/modules/gles3/functional/
H A 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[ in shadeFragments() local
[all...]
/third_party/skia/src/utils/
H A DSkPatchUtils.h53 const SkPoint texCoords[4], int lodX, int lodY,
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/protected_memory/
H A DvktProtectedMemYCbCrConversionTests.cpp999 const std::vector<tcu::Vec2>& texCoords, in generateYCbCrImage()
1060 ycbcr::calculateBounds(rChannelAccess, gChannelAccess, bChannelAccess, aChannelAccess, bitDepth, texCoords, filteringPrecision, conversionPrecision, subTexelPrecisionBits, config.textureFilter, config.colorModel, config.colorRange, config.chromaFilter, config.xChromaOffset, config.yChromaOffset, config.componentMapping, explicitReconstruction, config.addressModeU, config.addressModeV, ycbcrMinBounds, ycbcrMaxBounds, uvBounds, ijBounds); in generateYCbCrImage()
1068 ycbcr::calculateBounds(rChannelAccess, gChannelAccess, bChannelAccess, aChannelAccess, bitDepth, texCoords, filteringPrecision, conversionPrecision, subTexelPrecisionBits, config.textureFilter, config.colorModel, config.colorRange, config.chromaFilter, vk::VK_CHROMA_LOCATION_MIDPOINT, vk::VK_CHROMA_LOCATION_MIDPOINT, config.componentMapping, explicitReconstruction, config.addressModeU, config.addressModeV, relaxedYcbcrMinBounds, relaxedYcbcrMaxBounds, uvBounds, ijBounds); in generateYCbCrImage()
1214 std::vector<tcu::Vec2> texCoords; in conversionTest() local
1216 genTexCoords(texCoords, size); in conversionTest()
1217 posCoords = computeVertexPositions((deUint32)texCoords.size(), size.cast<int>()); in conversionTest()
1227 generateYCbCrImage(ctx, config, size, texCoords, ycbcrSrc, ycbcrMinBounds, ycbcrMaxBounds); in conversionTest()
1239 DE_ASSERT(texCoords.size() >= CHECK_SIZE); in conversionTest()
1243 for (deUint32 ndx = 0; ndx < texCoords.size(); ++ndx) in conversionTest()
1246 data.coord = texCoords[nd in conversionTest()
996 generateYCbCrImage(ProtectedContext& ctx, const TestConfig& config, const tcu::UVec2 size, const std::vector<tcu::Vec2>& texCoords, ycbcr::MultiPlaneImageData& ycbcrSrc, std::vector<tcu::Vec4>& ycbcrMinBounds, std::vector<tcu::Vec4>& ycbcrMaxBounds) generateYCbCrImage() argument
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/protected_memory/
H A DvktProtectedMemYCbCrConversionTests.cpp999 const std::vector<tcu::Vec2>& texCoords, in generateYCbCrImage()
1060 ycbcr::calculateBounds(rChannelAccess, gChannelAccess, bChannelAccess, aChannelAccess, bitDepth, texCoords, filteringPrecision, conversionPrecision, subTexelPrecisionBits, config.textureFilter, config.colorModel, config.colorRange, config.chromaFilter, config.xChromaOffset, config.yChromaOffset, config.componentMapping, explicitReconstruction, config.addressModeU, config.addressModeV, ycbcrMinBounds, ycbcrMaxBounds, uvBounds, ijBounds); in generateYCbCrImage()
1068 ycbcr::calculateBounds(rChannelAccess, gChannelAccess, bChannelAccess, aChannelAccess, bitDepth, texCoords, filteringPrecision, conversionPrecision, subTexelPrecisionBits, config.textureFilter, config.colorModel, config.colorRange, config.chromaFilter, vk::VK_CHROMA_LOCATION_MIDPOINT, vk::VK_CHROMA_LOCATION_MIDPOINT, config.componentMapping, explicitReconstruction, config.addressModeU, config.addressModeV, relaxedYcbcrMinBounds, relaxedYcbcrMaxBounds, uvBounds, ijBounds); in generateYCbCrImage()
1214 std::vector<tcu::Vec2> texCoords; in conversionTest() local
1216 genTexCoords(texCoords, size); in conversionTest()
1217 posCoords = computeVertexPositions((deUint32)texCoords.size(), size.cast<int>()); in conversionTest()
1227 generateYCbCrImage(ctx, config, size, texCoords, ycbcrSrc, ycbcrMinBounds, ycbcrMaxBounds); in conversionTest()
1239 DE_ASSERT(texCoords.size() >= CHECK_SIZE); in conversionTest()
1243 for (deUint32 ndx = 0; ndx < texCoords.size(); ++ndx) in conversionTest()
1246 data.coord = texCoords[nd in conversionTest()
996 generateYCbCrImage(ProtectedContext& ctx, const TestConfig& config, const tcu::UVec2 size, const std::vector<tcu::Vec2>& texCoords, ycbcr::MultiPlaneImageData& ycbcrSrc, std::vector<tcu::Vec4>& ycbcrMinBounds, std::vector<tcu::Vec4>& ycbcrMaxBounds) generateYCbCrImage() argument
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
H A DvktPipelineReferenceRenderer.cpp339 std::vector<tcu::Vec4> texCoords; in draw() local
345 texCoords.push_back(v.texCoord); in draw()
357 vertexAttribs[1].pointer = texCoords.data(); in draw()

Completed in 26 milliseconds

1234