Home
last modified time | relevance | path

Searched refs:kFloat2_GrSLType (Results 1 – 25 of 52) sorted by relevance

123

/third_party/skia/src/gpu/
DGrGeometryProcessor.cpp90 SkASSERT(kFloat2_GrSLType == gpArgs.fPositionVar.getType() || in emitCode()
94 if (kFloat2_GrSLType == gpArgs.fPositionVar.getType()) { in emitCode()
106 SkASSERT(localCoordsVar.getType() == kFloat2_GrSLType || in collectTransforms()
109 SkASSERT(positionVar.getType() == kFloat2_GrSLType || in collectTransforms()
184 varying = GrGLSLVarying(hasPerspective ? kFloat3_GrSLType : kFloat2_GrSLType); in collectTransforms()
275 if (inputCoords.getType() == kFloat2_GrSLType) { in emitTransformCode()
283 if (info.varying.type() == kFloat2_GrSLType) { in emitTransformCode()
352 SkASSERT(inPos.getType() == kFloat3_GrSLType || inPos.getType() == kFloat2_GrSLType); in write_passthrough_vertex_position()
369 SkASSERT(inPos.getType() == kFloat3_GrSLType || inPos.getType() == kFloat2_GrSLType); in write_vertex_position()
431 outPos->set(kFloat2_GrSLType, outName.c_str()); in write_vertex_position()
[all …]
DGrSPIRVUniformHandler.cpp59 case kFloat2_GrSLType: in grsltype_to_alignment_mask()
116 case kFloat2_GrSLType: in grsltype_to_size()
310 return get_ubo_offset(&currentOffset, kFloat2_GrSLType, 0); in getRTFlipOffset()
DGrSPIRVVaryingHandler.cpp22 case kFloat2_GrSLType: // fall through in grsltype_to_location_size()
/third_party/skia/src/gpu/tessellate/shaders/
DGrStrokeTessellationShader.cpp40 fAttribs.emplace_back("prevCtrlPtAttr", kFloat2_GrVertexAttribType, kFloat2_GrSLType); in GrStrokeTessellationShader()
73 fAttribs.emplace_back("argsAttr", kFloat2_GrVertexAttribType, kFloat2_GrSLType); in GrStrokeTessellationShader()
78 kFloat2_GrSLType); in GrStrokeTessellationShader()
327 gpArgs->fPositionVar.set(kFloat2_GrSLType, "devCoord"); in emitTessellationCode()
328 gpArgs->fLocalCoordVar.set(kFloat2_GrSLType, "strokeCoord"); in emitTessellationCode()
334 gpArgs->fPositionVar.set(kFloat2_GrSLType, "devCoord"); in emitTessellationCode()
335 gpArgs->fLocalCoordVar.set(kFloat2_GrSLType, "localCoord"); in emitTessellationCode()
DGrPathTessellationShader_MiddleOut.cpp44 kFloat2_GrSLType); in MiddleOutShader()
65 kFloat2_GrSLType); in MiddleOutShader()
196 gpArgs->fLocalCoordVar.set(kFloat2_GrSLType, "localcoord"); in makeProgramImpl()
197 gpArgs->fPositionVar.set(kFloat2_GrSLType, "vertexpos"); in makeProgramImpl()
DGrPathTessellationShader_Hardware.cpp41 kFloat2_GrSLType}; in HardwareWedgeShader()
65 v->declareGlobal(GrShaderVar("vsPt", kFloat2_GrSLType, GrShaderVar::TypeModifier::Out)); in makeProgramImpl()
182 kFloat2_GrSLType}; in HardwareCurveShader()
209 v->declareGlobal(GrShaderVar("P", kFloat2_GrSLType, GrShaderVar::TypeModifier::Out)); in makeProgramImpl()
DGrPathTessellationShader.cpp27 kFloat2_GrSLType}; in SimpleTriangleShader()
50 gpArgs->fLocalCoordVar.set(kFloat2_GrSLType, "localcoord"); in makeProgramImpl()
51 gpArgs->fPositionVar.set(kFloat2_GrSLType, "vertexpos"); in makeProgramImpl()
126 kFloat2_GrSLType, "translate", &translate); in onEmitCode()
DGrStrokeTessellationShader_HardwareImpl.cpp50 v->declareGlobal(GrShaderVar("vsStrokeArgs", kFloat2_GrSLType, TypeModifier::Out)); in onEmitCode()
90 kFloat2_GrSLType, "translate", nullptr); in onEmitCode()
/third_party/skia/src/gpu/ops/
DAtlasInstancedHelper.cpp21 instanceAttribs->emplace_back("sizeInAtlas", kFloat2_GrVertexAttribType, kFloat2_GrSLType); in appendInstanceAttribs()
45 GrGLSLVarying atlasCoord(kFloat2_GrSLType); in injectShaderCode()
50 nullptr, kVertex_GrShaderFlag, kFloat2_GrSLType, "atlas_adjust", &atlasAdjustName); in injectShaderCode()
DDrawAtlasPathOp.cpp35 "unitCoord", kFloat2_GrVertexAttribType, kFloat2_GrSLType); in DrawAtlasPathShader()
41 fAttribs.emplace_back("translate", kFloat2_GrVertexAttribType, kFloat2_GrSLType); in DrawAtlasPathShader()
93 gpArgs->fPositionVar.set(kFloat2_GrSLType, "devCoord"); in onEmitCode()
99 gpArgs->fLocalCoordVar.set(kFloat2_GrSLType, "localCoord"); in onEmitCode()
DPathStencilCoverOp.cpp38 kFloat2_GrSLType); in BoundingBoxShader()
43 {"translate", kFloat2_GrVertexAttribType, kFloat2_GrSLType}, in BoundingBoxShader()
87 gpArgs->fLocalCoordVar.set(kFloat2_GrSLType, "localcoord"); in makeProgramImpl()
88 gpArgs->fPositionVar.set(kFloat2_GrSLType, "vertexpos"); in makeProgramImpl()
DFillRRectOp.cpp359 fInstanceAttribs.emplace_back("translate", kFloat2_GrVertexAttribType, kFloat2_GrSLType); in Processor()
690 GrShaderVar localCoord("", kFloat2_GrSLType); in onEmitCode()
694 gpArgs->fLocalCoordVar.set(kFloat2_GrSLType, "localcoord"); in onEmitCode()
700 gpArgs->fPositionVar.set(kFloat2_GrSLType, "devcoord"); in onEmitCode()
703 GrGLSLVarying arcCoord(useHWDerivatives ? kFloat2_GrSLType : kFloat4_GrSLType); in onEmitCode()
/third_party/skia/src/gpu/glsl/
DGrGLSLVertexGeoBuilder.cpp21 SkASSERT(kFloat2_GrSLType == devPosType); in emitNormalizedSkPosition()
29 SkASSERT(kFloat2_GrSLType == devPosType); in emitNormalizedSkPosition()
DGrGLSLVertexGeoBuilder.h33 GrSLType devPosType = GrSLType::kFloat2_GrSLType) {
38 GrSLType devPosType = GrSLType::kFloat2_GrSLType);
DGrGLSL.cpp27 case kFloat2_GrSLType: return "float2"; in GrGLSLTypeString()
DGrGLSLProgramBuilder.cpp233 params[numParams++] = GrShaderVar(sampleCoords, kFloat2_GrSLType); in writeFPFunction()
245 case kFloat2_GrSLType: in writeFPFunction()
474 kFloat2_GrSLType, in addRTFlipUniform()
/third_party/skia/src/gpu/effects/
DGrDistanceFieldGeoProc.cpp66 kFloat2_GrSLType, in onEmitCode()
226 fInPosition = {"inPosition", kFloat2_GrVertexAttribType, kFloat2_GrSLType}; in GrDistanceFieldA8TextGeoProc()
230 caps.integerSupport() ? kUShort2_GrSLType : kFloat2_GrSLType}; in GrDistanceFieldA8TextGeoProc()
354 kFloat2_GrSLType, in onEmitCode()
493 fInPosition = {"inPosition", kFloat2_GrVertexAttribType, kFloat2_GrSLType}; in GrDistanceFieldPathGeoProc()
496 caps.integerSupport() ? kUShort2_GrSLType : kFloat2_GrSLType}; in GrDistanceFieldPathGeoProc()
620 kFloat2_GrSLType, in onEmitCode()
805 fInPosition = {"inPosition", kFloat2_GrVertexAttribType, kFloat2_GrSLType}; in GrDistanceFieldLCDTextGeoProc()
809 caps.integerSupport() ? kUShort2_GrSLType : kFloat2_GrSLType}; in GrDistanceFieldLCDTextGeoProc()
DGrAtlasedShaderHelpers.h76 uv->reset(kFloat2_GrSLType); in append_index_uv_varyings()
90 st->reset(kFloat2_GrSLType); in append_index_uv_varyings()
DGrBezierEffect.h101 {"inPosition", kFloat2_GrVertexAttribType, kFloat2_GrSLType},
164 {"inPosition", kFloat2_GrVertexAttribType, kFloat2_GrSLType},
DGrBitmapTextGeoProc.cpp57 kFloat2_GrSLType, "AtlasSizeInv", &atlasDimensionsInvName); in onEmitCode()
132 fInPosition = {"inPosition", kFloat2_GrVertexAttribType, kFloat2_GrSLType}; in GrBitmapTextGeoProc()
142 caps.integerSupport() ? kUShort2_GrSLType : kFloat2_GrSLType}; in GrBitmapTextGeoProc()
/third_party/skia/tests/
DSkSLCross.cpp64 GrSLType::kFloat2_GrSLType, "a", &a); in onMakeProgramImpl()
66 GrSLType::kFloat2_GrSLType, "b", &b); in onMakeProgramImpl()
/third_party/skia/src/gpu/vk/
DGrVkUniformHandler.cpp52 case kFloat2_GrSLType: in grsltype_to_alignment_mask()
110 case kFloat2_GrSLType: in grsltype_to_vk_size()
374 return get_aligned_offset(&currentOffset, kFloat2_GrSLType, 0, layout); in getRTFlipOffset()
/third_party/skia/gm/
Dfwidth_squircle.cpp57 {"bboxcoord", kFloat2_GrVertexAttribType, kFloat2_GrSLType};
112 GrGLSLVarying squircleCoord(kFloat2_GrSLType); in makeProgramImpl()
Dclockwise.cpp60 {"position", kFloat2_GrVertexAttribType, kFloat2_GrSLType};
107 gpArgs->fPositionVar.set(kFloat2_GrSLType, "position"); in makeProgramImpl()
/third_party/skia/include/private/
DGrTypesPriv.h309 kFloat2_GrSLType, enumerator
375 case kFloat2_GrSLType: in SK_MAKE_BITFIELD_OPS()
444 case kFloat2_GrSLType: in GrSLTypeIsIntegralType()
493 case kFloat2_GrSLType: in GrSLTypeVecLength()
576 case kFloat2_GrSLType: in GrSLTypeIsCombinedSamplerType()

123