Home
last modified time | relevance | path

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

1234

/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/shaders/
Dblit.metal44 float2 texCoords [[user(locn1)]];
51 output.texCoords = options.srcTexCoords[vid];
68 static uint2 getImageCoords(SrcTexture2d srcTexture, float2 texCoords)
71 uint2 coords = uint2(texCoords * float2(dimens));
77 static inline vec<T, 4> blitSampleTextureMS(texture2d_ms<T> srcTexture, float2 texCoords)
79 uint2 coords = getImageCoords(srcTexture, texCoords);
86 float2 texCoords,
92 return srcTexture.sample(textureSampler, float3(texCoords, zCoord), level(options.srcLevel));
120 output = srcTexture2d.sample(textureSampler, input.texCoords, level(options.srcLevel));
123 output = srcTexture2dArray.sample(textureSampler, input.texCoords, options.srcLayer,
[all …]
Dgen_mipmap.metal66 float3 texCoords = (float3(gIndices) + float3(0.5, 0.5, 0.5)) / float3(mipSize);
67 texel1 = srcTexture.sample(textureSampler, texCoords, level(options.srcLevel));
246 float2 texCoords = (float2(gIndices) + float2(0.5, 0.5)) / float2(mipSize);
247 texel1 = srcTexture.sample(textureSampler, texCoords, level(options.srcLevel));
484 float2 texCoords = (float2(gIndices.xy) + float2(0.5, 0.5)) / float2(mip1Size);
485 mip1Texel = srcTexture.sample(textureSampler, cubeTexcoords(texCoords, int(gIndices.z)),
532 float2 texCoords = (float2(gIndices.xy) + float2(0.5, 0.5)) / float2(mip1Size);
534 srcTexture.sample(textureSampler, texCoords, gIndices.z, level(options.srcLevel));
/third_party/skia/src/core/
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()
347 SkASSERT((texCoords != nullptr) == (paintShader != nullptr)); in drawFixedVertices()
375 if (!texCoords) { // only tricolor shader in drawFixedVertices()
408 if (texCoords == positions) { in drawFixedVertices()
426 if ((texCoords == positions) || in drawFixedVertices()
[all …]
/third_party/skia/tests/
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/typescript/tests/baselines/reference/
DparserErrorRecoveryArrayLiteralExpression3.symbols2 var texCoords = [2, 2, 0.5000001192092895, 0.8749999 ; 403953552, 0.5000001192092895, 0.87499994039…
3 >texCoords : Symbol(texCoords, Decl(parserErrorRecoveryArrayLiteralExpression3.ts, 0, 3))
DparserErrorRecoveryArrayLiteralExpression3.js2 var texCoords = [2, 2, 0.5000001192092895, 0.8749999 ; 403953552, 0.5000001192092895, 0.87499994039… variable
6 var texCoords = [2, 2, 0.5000001192092895, 0.8749999]; variable
DparserErrorRecoveryArrayLiteralExpression3.types2 var texCoords = [2, 2, 0.5000001192092895, 0.8749999 ; 403953552, 0.5000001192092895, 0.87499994039…
3 >texCoords : number[]
/third_party/skia/third_party/externals/spirv-cross/shaders/asm/frag/
Dhlsl-sample-cmp-level-zero.asm.frag14 OpName %texCoords "texCoords"
20 OpName %texCoords_0 "texCoords"
21 OpName %texCoords_1 "texCoords"
88 %texCoords = OpFunctionParameter %_ptr_Function_v2float
96 %29 = OpLoad %v2float %texCoords
/third_party/spirv-tools/test/opt/
Dinline_opaque_test.cpp48 OpName %texCoords "texCoords" in TEST_F()
152 OpName %texCoords "texCoords" in TEST_F()
246 OpName %texCoords "texCoords" in TEST_F()
362 OpName %texCoords "texCoords" in TEST_F()
/third_party/skia/third_party/externals/spirv-tools/test/opt/
Dinline_opaque_test.cpp48 OpName %texCoords "texCoords" in TEST_F()
152 OpName %texCoords "texCoords" in TEST_F()
246 OpName %texCoords "texCoords" in TEST_F()
362 OpName %texCoords "texCoords" in TEST_F()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/
Dinline_opaque_test.cpp48 OpName %texCoords "texCoords" in TEST_F()
152 OpName %texCoords "texCoords" in TEST_F()
246 OpName %texCoords "texCoords" in TEST_F()
362 OpName %texCoords "texCoords" in TEST_F()
/third_party/vk-gl-cts/modules/gles2/functional/
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[0].x(), texCoords[0].y(), 1.0f), in shadeFragments()
511 m_transformations[unitNdx] * Vec3(texCoords[1].x(), texCoords[1].y(), 1.0f), in shadeFragments()
512 m_transformations[unitNdx] * Vec3(texCoords[2].x(), texCoords[2].y(), 1.0f), in shadeFragments()
513 m_transformations[unitNdx] * Vec3(texCoords[3].x(), texCoords[3].y(), 1.0f), in shadeFragments()
/third_party/skia/src/gpu/ops/
DLatticeOp.cpp288 SkRect texCoords; in onPrepareDraws() local
290 coords.store(&texCoords); in onPrepareDraws()
294 VertexWriter::TriStripFromRect(texCoords), in onPrepareDraws()
306 << SkPoint::Make(texCoords.fLeft, texCoords.fTop) in onPrepareDraws()
310 << SkPoint::Make(texCoords.fLeft, texCoords.fBottom) in onPrepareDraws()
314 << SkPoint::Make(texCoords.fRight, texCoords.fTop) in onPrepareDraws()
318 << SkPoint::Make(texCoords.fRight, texCoords.fBottom) in onPrepareDraws()
DDrawVerticesOp.cpp446 const SkPoint* localCoords = info.texCoords() ? info.texCoords() : positions; in onPrepareDraws()
661 SkTArray<SkPoint>* texCoords, bool hasTexCoords, in randomize_params() argument
667 texCoords->push_back(random_point(random, min, max)); in randomize_params()
693 SkTArray<SkPoint> texCoords; in GR_DRAW_OP_TEST_DEFINE() local
706 &positions, &texCoords, hasTexCoords, &colors, hasColors, &indices, in GR_DRAW_OP_TEST_DEFINE()
711 random, &positions, &texCoords, hasTexCoords, &colors, hasColors, &indices, in GR_DRAW_OP_TEST_DEFINE()
721 texCoords.begin(), colors.begin(), in GR_DRAW_OP_TEST_DEFINE()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/
DvktTextureConversionTests.cpp68 const std::vector<float>& texCoords) const;
138 …Access& reference, const ReferenceParams& samplerParams, const std::vector<float>& texCoords) const in verifyPixels()
163 m_swTexture, texCoords.data(), samplerParams, in verifyPixels()
206 std::vector<float> texCoords (8); in iterate() local
227 computeQuadTexCoord2D(texCoords, tcu::Vec2(0.0f), tcu::Vec2(1.0f)); in iterate()
230 m_renderer.renderQuad(rendered, 0, texCoords.data(), samplerParams); in iterate()
233 sampleTexture(reference, m_swTexture, texCoords.data(), samplerParams); in iterate()
235 return verifyPixels(rendered, reference, samplerParams, texCoords) in iterate()
/third_party/skia/docs/examples/
DCanvas_drawPatch_2_b.cpp14 SkPoint texCoords[] = { { 0, 0 }, { 0, 62}, { 62, 62}, { 62, 0 } }; in draw() local
17 canvas->drawPatch(cubics, nullptr, texCoords, paint); in draw()
DCanvas_drawPatch.cpp15 SkPoint texCoords[] = { { -30, -30 }, { 162, -30}, { 162, 162}, { -30, 162} }; in draw() local
19 canvas->drawPatch(cubics, colors, texCoords, blend, paint); in draw()
Ddraw_patch.cpp18 const SkPoint texCoords[] = { in draw() local
20 canvas->drawPatch(cubics, nullptr, texCoords, SkBlendMode::kSrcOver, p); in draw()
/third_party/skia/third_party/externals/spirv-cross/reference/opt/shaders/asm/frag/
Dhlsl-sample-cmp-level-zero.asm.frag5 layout(location = 0) in vec2 texCoords;
12 …c4(textureGrad(SPIRV_Cross_CombinedShadowMapShadowSamplerPCF, vec4(vec4(texCoords, cascadeIndex, f…
/third_party/skia/third_party/externals/spirv-cross/reference/shaders/asm/frag/
Dhlsl-sample-cmp-level-zero.asm.frag5 layout(location = 0) in vec2 texCoords;
19 vec2 texCoords_1 = texCoords;
/third_party/vk-gl-cts/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 …]
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fTextureGatherTests.cpp504 static inline void computeTexCoordVecs (const vector<float>& texCoords, tcu::Vector<float, N> (&dst… 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, PixelCo… in verify()
1540 …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()
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/typescript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrayLiteralExpressions/
DparserErrorRecoveryArrayLiteralExpression3.ts1 var texCoords = [2, 2, 0.5000001192092895, 0.8749999 ; 403953552, 0.5000001192092895, 0.87499994039… variable
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRenderTextureGatherTests.cpp535 static inline void computeTexCoordVecs (const vector<float>& texCoords, tcu::Vector<float, N> (&dst… 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()
1436 const TexCoordT (&texCoords)[4], in verify()
1471 …return verifyGatherOffsetsCompare(log, rendered, texture, texCoords, sampler, comparePrec, PixelCo… in verify()
1484 …return verifyGatherOffsets<float>(log, rendered, texture, texCoords, sampler, lookupPrec, componen… in verify()
[all …]

1234