Home
last modified time | relevance | path

Searched refs:fLayout (Results 1 – 25 of 38) sorted by relevance

12

/external/skqp/src/gpu/vk/
DGrVkTypesPriv.cpp13 SkSafeUnref(fLayout); in cleanup()
14 fLayout = nullptr; in cleanup()
19 GrVkImageLayout* oldLayout = fLayout; in assign()
20 fLayout = SkSafeRef(that.fLayout); in assign()
27 SkASSERT(fLayout); in setImageLayout()
28 fLayout->setImageLayout(layout); in setImageLayout()
32 SkASSERT(fLayout); in getGrVkImageLayout()
33 return sk_ref_sp(fLayout); in getGrVkImageLayout()
37 return GrVkImageInfo(fImageInfo, fLayout->getImageLayout()); in snapImageInfo()
48 return cpyInfoThis == cpyInfoThat && fLayout == that.fLayout; in operator ==()
DGrVkImageLayout.h16 GrVkImageLayout(VkImageLayout layout) : fLayout(layout) {} in GrVkImageLayout()
20 fLayout.store(layout); in setImageLayout()
25 return fLayout.load(); in getImageLayout()
29 std::atomic<VkImageLayout> fLayout;
DGrVkImage.h31 , fLayout(std::move(layout)) in fInfo()
33 SkASSERT(fLayout->getImageLayout() == fInfo.fImageLayout); in fInfo()
79 sk_sp<GrVkImageLayout> grVkImageLayout() const { return fLayout; } in grVkImageLayout()
82 return fLayout->getImageLayout(); in currentLayout()
99 fLayout->setImageLayout(newLayout); in updateImageLayout()
146 sk_sp<GrVkImageLayout> fLayout; variable
/external/skia/include/private/
DSkSLModifiers.h36 : fLayout(Layout()) in Modifiers()
40 : fLayout(layout) in Modifiers()
44 String result = fLayout.description(); in description()
75 return fLayout == other.fLayout && fFlags == other.fFlags;
82 Layout fLayout; member
93 return (size_t) key.fFlags ^ ((size_t) key.fLayout.fFlags << 8) ^
94 ((size_t) key.fLayout.fBuiltin << 16);
DGrVkTypesPriv.h47 : fLayout(layout) in GrVkSharedImageInfo()
51 fLayout = that.getImageLayout();
58 fLayout.store(layout); in setImageLayout()
63 return fLayout.load(); in getImageLayout()
77 std::atomic<VkImageLayout> fLayout;
/external/skqp/src/sksl/ir/
DSkSLModifiers.h43 : fLayout(Layout()) in Modifiers()
47 : fLayout(layout) in Modifiers()
51 String result = fLayout.description(); in description()
115 return fLayout == other.fLayout && fFlags == other.fFlags;
122 Layout fLayout; member
/external/skia/src/gpu/vk/
DGrVkImageLayout.h16 GrVkImageLayout(VkImageLayout layout) : fLayout(layout) {} in GrVkImageLayout()
20 fLayout.store(layout); in setImageLayout()
25 return fLayout.load(); in getImageLayout()
29 std::atomic<VkImageLayout> fLayout;
/external/skqp/src/sksl/
DSkSLCPPCodeGenerator.cpp88 int builtin = ((VariableReference&) base).fVariable.fModifiers.fLayout.fBuiltin; in writeIndexExpression()
135 if (var.fModifiers.fLayout.fCType == SkSL::Layout::CType::kSkPMColor4f) { in default_value()
145 var.fModifiers.fLayout.fBuiltin == -1; in is_private()
213 this->writeRuntimeValue(var.fType, var.fModifiers.fLayout, var.fName); in writeVarInitializer()
256 switch (ref.fVariable.fModifiers.fLayout.fBuiltin) { in writeVariableReference()
286 if (ref.fVariable.fModifiers.fLayout.fWhen.size()) { in writeVariableReference()
297 this->writeRuntimeValue(ref.fVariable.fType, ref.fVariable.fModifiers.fLayout, in writeVariableReference()
484 -1 != var.fModifiers.fLayout.fBuiltin) { in writeProgramElement()
526 if (var.fModifiers.fLayout.fWhen.size()) { in addUniform()
527 this->writef(" if (%s) {\n ", var.fModifiers.fLayout.fWhen.c_str()); in addUniform()
[all …]
DSkSLMetalCodeGenerator.cpp410 switch (ref.fVariable.fModifiers.fLayout.fBuiltin) { in writeVariableReference()
458 switch (field->fModifiers.fLayout.fBuiltin) { in writeFieldAccess()
663 this->write(to_string(var.fVar->fModifiers.fLayout.fBinding)); in writeFunction()
669 this->write(to_string(var.fVar->fModifiers.fLayout.fBinding)); in writeFunction()
684 this->write(to_string(intf.fVariable.fModifiers.fLayout.fSet)); in writeFunction()
686 this->write(to_string(intf.fVariable.fModifiers.fLayout.fBinding)); in writeFunction()
879 int fieldOffset = field.fModifiers.fLayout.fOffset; in writeFields()
1152 fUniformBuffer = first.fModifiers.fLayout.fSet; in writeUniformStruct()
1156 } else if (first.fModifiers.fLayout.fSet != fUniformBuffer) { in writeUniformStruct()
1188 -1 == first.fModifiers.fLayout.fBuiltin) { in writeInputStruct()
[all …]
DSkSLHCodeGenerator.cpp181 param->fModifiers.fLayout).c_str(), in writeMake()
224 param->fModifiers.fLayout).c_str(), in writeConstructor()
295 param->fModifiers.fLayout).c_str(), in writeFields()
350 AccessType(fContext, param->fType, param->fModifiers.fLayout).c_str(), name, in generateCode()
DSkSLPipelineStageCodeGenerator.cpp117 switch (ref.fVariable.fModifiers.fLayout.fBuiltin) { in writeVariableReference()
222 -1 != var.fModifiers.fLayout.fBuiltin) { in writeProgramElement()
DSkSLSPIRVCodeGenerator.cpp395 const Layout& fieldLayout = type.fields()[i].fModifiers.fLayout; in writeStruct()
416 if (type.fields()[i].fModifiers.fLayout.fBuiltin < 0) { in writeStruct()
1449 SkASSERT(!(modifiers.fLayout.fFlags & Layout::kPushConstant_Flag)); in get_storage_class()
1452 SkASSERT(!(modifiers.fLayout.fFlags & Layout::kPushConstant_Flag)); in get_storage_class()
1455 if (modifiers.fLayout.fFlags & Layout::kPushConstant_Flag) { in get_storage_class()
1619 if (var.fModifiers.fLayout.fBuiltin == SK_IN_BUILTIN) { in getLValue()
1722 if (ref.fVariable.fModifiers.fLayout.fBuiltin == SK_FRAGCOORD_BUILTIN && in writeVariableReference()
1785 if (ref.fVariable.fModifiers.fLayout.fBuiltin == SK_CLOCKWISE_BUILTIN && in writeVariableReference()
2601 switch (m.fLayout.fPrimitive) { in update_sk_in_count()
2624 bool pushConstant = (0 != (intf.fVariable.fModifiers.fLayout.fFlags & in writeInterfaceBlock()
[all …]
DSkSLCPPUniformCTypes.h57 return Get(context, variable.fType, variable.fModifiers.fLayout); in Get()
/external/skia/src/sksl/codegen/
DSkSLCPPCodeGenerator.cpp106 if (var.modifiers().fLayout.fCType == SkSL::Layout::CType::kSkPMColor4f) { in default_value()
117 modifiers.fLayout.fBuiltin == -1; in is_private()
239 this->writeRuntimeValue(var.type(), var.modifiers().fLayout, var.name()); in writeVarInitializer()
283 switch (ref.variable()->modifiers().fLayout.fBuiltin) { in writeVariableReference()
303 if (var.modifiers().fLayout.fWhen.fLength) { in writeVariableReference()
314 this->writeRuntimeValue(var.type(), var.modifiers().fLayout, in writeVariableReference()
595 -1 != var.modifiers().fLayout.fBuiltin) { in writeProgramElement()
615 if (var.modifiers().fLayout.fWhen.fLength) { in addUniform()
616 this->writef(" if (%s) {\n ", String(var.modifiers().fLayout.fWhen).c_str()); in addUniform()
633 if (var.modifiers().fLayout.fWhen.fLength) { in addUniform()
[all …]
DSkSLDSLCPPCodeGenerator.cpp98 if (var.modifiers().fLayout.fCType == SkSL::Layout::CType::kSkPMColor4f) { in default_value()
109 modifiers.fLayout.fBuiltin == -1; in is_private()
288 switch (var.modifiers().fLayout.fBuiltin) { in writeVariableReference()
555 (void) this->formatRuntimeValue(var.type(), var.modifiers().fLayout, in writeCppInitialValue()
766 (modifiers.fLayout.fFlags & Layout::kKey_Flag)) { in getDSLModifiers()
874 -1 != var.modifiers().fLayout.fBuiltin) { in writeProgramElement()
897 if (var.modifiers().fLayout.fWhen.fLength) { in addUniform()
904 (int)var.modifiers().fLayout.fWhen.size(), var.modifiers().fLayout.fWhen.data()); in addUniform()
914 if (var.modifiers().fLayout.fWhen.fLength) { in addUniform()
946 var.modifiers().fLayout).c_str(), in writePrivateVars()
[all …]
DSkSLMetalCodeGenerator.cpp1140 switch (ref.variable()->modifiers().fLayout.fBuiltin) { in writeVariableReference()
1189 switch (field->fModifiers.fLayout.fBuiltin) { in writeFieldAccess()
1523 return (m.fLayout.fBinding >= 0) ? m.fLayout.fBinding in getUniformBinding()
1528 return (m.fLayout.fSet >= 0) ? m.fLayout.fSet in getUniformSet()
1557 if (var.var().modifiers().fLayout.fBinding < 0) { in writeFunctionDeclaration()
1570 this->write(to_string(var.var().modifiers().fLayout.fBinding)); in writeFunctionDeclaration()
1576 this->write(to_string(var.var().modifiers().fLayout.fBinding)); in writeFunctionDeclaration()
1612 if (f.isMain() && param->modifiers().fLayout.fBuiltin != -1) { in writeFunctionDeclaration()
1749 int fieldOffset = field.fModifiers.fLayout.fOffset; in writeFields()
2037 -1 == var.modifiers().fLayout.fBuiltin) { in writeInputStruct()
[all …]
DSkSLHCodeGenerator.cpp188 param->modifiers().fLayout).c_str(), in writeMake()
232 param->modifiers().fLayout).c_str(), in writeConstructor()
298 param->modifiers().fLayout).c_str(), in writeFields()
DSkSLSPIRVCodeGenerator.cpp436 const Layout& fieldLayout = field.fModifiers.fLayout; in writeStruct()
457 if (field.fModifiers.fLayout.fBuiltin < 0) { in writeStruct()
1752 SkASSERT(!(modifiers.fLayout.fFlags & Layout::kPushConstant_Flag)); in get_storage_class()
1756 SkASSERT(!(modifiers.fLayout.fFlags & Layout::kPushConstant_Flag)); in get_storage_class()
1760 if (modifiers.fLayout.fFlags & Layout::kPushConstant_Flag) { in get_storage_class()
1962 if (var.modifiers().fLayout.fBuiltin == SK_IN_BUILTIN) { in getLValue()
2035 if (variable->modifiers().fLayout.fBuiltin == SK_FRAGCOORD_BUILTIN && in writeVariableReference()
2148 if (variable->modifiers().fLayout.fBuiltin == SK_CLOCKWISE_BUILTIN && in writeVariableReference()
2982 bool pushConstant = ((v.modifiers().fLayout.fFlags & Layout::kPushConstant_Flag) != 0); in memoryLayoutForVariable()
2987 switch (m.fLayout.fPrimitive) { in update_sk_in_count()
[all …]
/external/skqp/include/private/
DGrVkTypesPriv.h24 : fImageInfo(info), fLayout(layout) {} in GrVkBackendSurfaceInfo()
46 GrVkImageLayout* fLayout; member
/external/skia/src/sksl/ir/
DSkSLFunctionDeclaration.cpp96 m.fLayout.fBuiltin = SK_MAIN_COORDS_BUILTIN; in check_parameters()
98 m.fLayout.fBuiltin = SK_INPUT_COLOR_BUILTIN; in check_parameters()
100 if (m.fLayout.fBuiltin) { in check_parameters()
109 m.fLayout.fBuiltin = SK_FRAGCOORD_BUILTIN; in check_parameters()
131 p.modifiers().fLayout.fBuiltin == (kind == ProgramKind::kFragment in check_main_signature()
139 parameters[idx]->modifiers().fLayout.fBuiltin == SK_INPUT_COLOR_BUILTIN; in check_main_signature()
/external/skia/src/sksl/
DSkSLIRGenerator.cpp272 if (modifiers.fLayout.fWhen.fLength) { in checkVarDeclaration()
276 if (modifiers.fLayout.fFlags & Layout::kTracked_Flag) { in checkVarDeclaration()
280 if (modifiers.fLayout.fCType != Layout::CType::kDefault) { in checkVarDeclaration()
284 if (modifiers.fLayout.fFlags & Layout::kKey_Flag) { in checkVarDeclaration()
299 if ((modifiers.fLayout.fFlags & Layout::kKey_Flag) && in checkVarDeclaration()
303 if (modifiers.fLayout.fFlags & Layout::kSRGBUnpremul_Flag) { in checkVarDeclaration()
338 if (modifiers.fLayout.fLocation == 0 && modifiers.fLayout.fIndex == 0 && in convertVar()
467 if (modifiers.fLayout.fInvocations != -1) { in convertModifiersDeclaration()
473 fInvocations = modifiers.fLayout.fInvocations; in convertModifiersDeclaration()
475 modifiers.fLayout.fInvocations = -1; in convertModifiersDeclaration()
[all …]
DSkSLCPPUniformCTypes.h51 return Get(context, variable.type(), variable.modifiers().fLayout); in Get()
/external/skia/src/sksl/dsl/
DDSLFunction.cpp56 param->fModifiers.fModifiers.fLayout.fBuiltin = SK_MAIN_COORDS_BUILTIN; in init()
58 param->fModifiers.fModifiers.fLayout.fBuiltin = SK_INPUT_COLOR_BUILTIN; in init()
/external/skqp/src/gpu/effects/
DGrSkSLFP.cpp37 if (var.fModifiers.fLayout.fKey) { in GrSkSLFPFactory()
186 switch (v->fModifiers.fLayout.fCType) { in onSetData()
308 if (v->fModifiers.fLayout.fKey) { in onGetGLSLProcessorKey()
318 if (v->fModifiers.fLayout.fKey) { in onGetGLSLProcessorKey()
334 if (v->fModifiers.fLayout.fKey) { in onGetGLSLProcessorKey()
/external/skqp/gm/
Dmultipicturedraw.cpp461 MultiPictureDraw(Content content, Layout layout) : fContent(content), fLayout(layout) { in MultiPictureDraw()
478 Layout fLayout; member in skiagm::MultiPictureDraw
493 (*gLayoutMthds[fLayout])(canvas, &mpd, in onDraw()
524 name.append(gLayoutNames[fLayout]); in onShortName()

12