Home
last modified time | relevance | path

Searched refs:fComponents (Results 1 – 13 of 13) sorted by relevance

/third_party/flutter/skia/src/sksl/ir/
DSkSLSwizzle.h106 , fComponents(std::move(components)) { in Swizzle()
107 SkASSERT(fComponents.size() >= 1 && fComponents.size() <= 4); in Swizzle()
116 SkASSERT(fComponents.size() == 1); in constantPropagate()
117 int64_t value = ((Constructor&) *fBase).getIVecComponent(fComponents[0]); in constantPropagate()
122 SkASSERT(fComponents.size() == 1); in constantPropagate()
123 double value = ((Constructor&) *fBase).getFVecComponent(fComponents[0]); in constantPropagate()
137 return std::unique_ptr<Expression>(new Swizzle(fType, fBase->clone(), fComponents)); in clone()
142 for (int x : fComponents) { in description()
149 const std::vector<int> fComponents; member
157 , fComponents(std::move(components)) { in Swizzle()
[all …]
/third_party/skia/src/sksl/ir/
DSkSLSwizzle.h30 , fComponents(components) { in Swizzle()
60 return fComponents; in components()
84 , fComponents(components) { in Swizzle()
89 ComponentArray fComponents; member
DSkSLSwizzle.cpp180 ComponentArray fComponents; in optimize_constructor_swizzle() member
204 SkASSERT(!reorderedArgs.back().fComponents.empty()); in optimize_constructor_swizzle()
206 reorderedArgs.back().fComponents.push_back(argument.fComponent); in optimize_constructor_swizzle()
219 if (reorderedArg.fComponents.empty()) { in optimize_constructor_swizzle()
223 reorderedArg.fComponents)); in optimize_constructor_swizzle()
/third_party/flutter/skia/tools/gpu/
DYUVUtils.cpp48 if (!codec->queryYUVA8(&fSizeInfo, fComponents, &fColorSpace)) { in reset()
55 if (!codec->getYUVA8Planes(fSizeInfo, fComponents, planes)) { in reset()
82 fYUVImage = SkImage::MakeFromYUVAPixmaps(context, fColorSpace, fPlanes, fComponents, in ensureYUVImage()
DYUVUtils.h37 SkYUVAIndex fComponents[SkYUVAIndex::kIndexCount]; variable
/third_party/flutter/skia/src/sksl/
DSkSLJIT.cpp400 , fComponents(components) {} in getLValue()
404 if (fComponents.size() > 1) { in getLValue()
406 for (size_t i = 0; i < fComponents.size(); ++i) { in getLValue()
411 fComponents[i], in getLValue()
420 SkASSERT(fComponents.size() == 1); in getLValue()
423 fComponents[0], in getLValue()
430 if (fComponents.size() > 1) { in getLValue()
431 for (size_t i = 0; i < fComponents.size(); ++i) { in getLValue()
440 fComponents[i], in getLValue()
447 fComponents[0], in getLValue()
[all …]
DSkSLByteCodeGenerator.cpp158 for (size_t i = 1; i < s.fComponents.size(); ++i) { in swizzle_is_simple()
159 if (s.fComponents[i] != s.fComponents[i - 1] + 1) { in swizzle_is_simple()
510 int offset = s.fComponents[0]; in getLocation()
1100 s.fComponents.size()); in writeSwizzle()
1102 this->write8(s.fComponents.size()); in writeSwizzle()
1103 for (int c : s.fComponents) { in writeSwizzle()
1111 s.fComponents.size() - s.fBase->fType.columns()); in writeSwizzle()
1113 this->write8(s.fComponents.size()); in writeSwizzle()
1114 for (int c : s.fComponents) { in writeSwizzle()
1235 int count = fSwizzle.fComponents.size(); in store()
[all …]
DSkSLSPIRVCodeGenerator.cpp1616 , fComponents(components) in SwizzleLValue()
1630 fGen.writeOpCode(SpvOpVectorShuffle, 5 + (int32_t) fComponents.size(), out); in load()
1635 for (int component : fComponents) { in load()
1666 for (size_t j = 0; j < fComponents.size(); j++) { in store()
1667 if (fComponents[j] == i) { in store()
1684 const std::vector<int>& fComponents; member in SkSL::SwizzleLValue
1728 size_t count = swizzle.fComponents.size(); in getLValue()
1732 IntLiteral index(fContext, -1, swizzle.fComponents[0]); in getLValue()
1750 swizzle.fComponents, in getLValue()
1917 size_t count = swizzle.fComponents.size(); in writeSwizzle()
[all …]
DSkSLCPPCodeGenerator.cpp271 SkASSERT(swizzle.fComponents.size() == 1); // no support for multiple swizzle components yet in writeSwizzle()
273 switch (swizzle.fComponents[0]) { in writeSwizzle()
DSkSLGLSLCodeGenerator.cpp855 int last = swizzle.fComponents.back(); in writeFunctionCall()
862 for (int c : swizzle.fComponents) { in writeFunctionCall()
DSkSLMetalCodeGenerator.cpp586 int last = swizzle.fComponents.back(); in writeSwizzle()
593 for (int c : swizzle.fComponents) { in writeSwizzle()
DSkSLIRGenerator.cpp2459 for (int idx : swizzle.fComponents) { in checkSwizzleWrite()
/third_party/skia/src/sksl/codegen/
DSkSLSPIRVCodeGenerator.cpp1931 , fComponents(components) in SwizzleLValue()
1938 if (component < 0 || component >= fComponents.count()) { in applySwizzle()
1942 updatedSwizzle.push_back(fComponents[component]); in applySwizzle()
1944 fComponents = updatedSwizzle; in applySwizzle()
1953 fGen.writeOpCode(SpvOpVectorShuffle, 5 + (int32_t) fComponents.size(), out); in load()
1958 for (int component : fComponents) { in load()
1988 for (size_t j = 0; j < fComponents.size(); j++) { in store()
1989 if (fComponents[j] == i) { in store()
2005 ComponentArray fComponents; member in SkSL::SwizzleLValue