Home
last modified time | relevance | path

Searched refs:ProgramElement (Results 1 – 25 of 68) sorted by relevance

123

/external/skia/src/sksl/ir/
DSkSLProgram.h57 void remove(const ProgramElement& element);
90 std::vector<std::unique_ptr<ProgramElement>> elements, in Program()
91 std::vector<const ProgramElement*> sharedElements, in Program()
128 const ProgramElement* operator*() {
154 using Owned = std::vector<std::unique_ptr<ProgramElement>>::const_iterator;
155 using Shared = std::vector<const ProgramElement*>::const_iterator;
191 std::vector<std::unique_ptr<ProgramElement>>& ownedElements() { return fElements; } in ownedElements()
192 const std::vector<std::unique_ptr<ProgramElement>>& ownedElements() const { return fElements; } in ownedElements()
214 std::vector<std::unique_ptr<ProgramElement>> fElements;
215 std::vector<const ProgramElement*> fSharedElements;
DSkSLExtension.h18 class Extension final : public ProgramElement {
30 std::unique_ptr<ProgramElement> clone() const override { in clone()
31 return std::unique_ptr<ProgramElement>(new Extension(fOffset, this->name())); in clone()
41 using INHERITED = ProgramElement;
DSkSLSection.h18 class Section final : public ProgramElement {
40 std::unique_ptr<ProgramElement> clone() const override { in clone()
41 return std::unique_ptr<ProgramElement>(new Section(fOffset, this->name(), this->argument(), in clone()
59 using INHERITED = ProgramElement;
DSkSLModifiersDeclaration.h21 class ModifiersDeclaration final : public ProgramElement {
33 std::unique_ptr<ProgramElement> clone() const override { in clone()
44 using INHERITED = ProgramElement;
DSkSLFunctionPrototype.h22 class FunctionPrototype final : public ProgramElement {
39 std::unique_ptr<ProgramElement> clone() const override { in clone()
52 using INHERITED = ProgramElement;
DSkSLStructDefinition.h27 class StructDefinition final : public ProgramElement {
39 std::unique_ptr<ProgramElement> clone() const override { in clone()
61 using INHERITED = ProgramElement;
DSkSLFunctionDefinition.h22 class FunctionDefinition final : public ProgramElement {
65 std::unique_ptr<ProgramElement> clone() const override { in clone()
88 using INHERITED = ProgramElement;
DSkSLInterfaceBlock.h29 class InterfaceBlock final : public ProgramElement {
66 std::unique_ptr<ProgramElement> clone() const override { in clone()
100 using INHERITED = ProgramElement;
DSkSLEnum.h23 class Enum final : public ProgramElement {
51 std::unique_ptr<ProgramElement> clone() const override { in clone()
95 using INHERITED = ProgramElement;
DSkSLVarDeclarations.h104 class GlobalVarDeclaration final : public ProgramElement {
122 std::unique_ptr<ProgramElement> clone() const override { in clone()
133 using INHERITED = ProgramElement;
/external/skqp/src/sksl/ir/
DSkSLModifiersDeclaration.h21 struct ModifiersDeclaration : public ProgramElement {
26 std::unique_ptr<ProgramElement> clone() const override { in clone()
27 return std::unique_ptr<ProgramElement>(new ModifiersDeclaration(fModifiers)); in clone()
36 typedef ProgramElement INHERITED;
DSkSLExtension.h18 struct Extension : public ProgramElement {
23 std::unique_ptr<ProgramElement> clone() const override { in clone()
24 return std::unique_ptr<ProgramElement>(new Extension(fOffset, fName)); in clone()
33 typedef ProgramElement INHERITED;
DSkSLFunctionDefinition.h20 struct FunctionDefinition : public ProgramElement {
27 std::unique_ptr<ProgramElement> clone() const override { in clone()
28 return std::unique_ptr<ProgramElement>(new FunctionDefinition(fOffset, fDeclaration, in clone()
39 typedef ProgramElement INHERITED;
DSkSLSection.h18 struct Section : public ProgramElement {
25 std::unique_ptr<ProgramElement> clone() const override { in clone()
26 return std::unique_ptr<ProgramElement>(new Section(fOffset, fName, fArgument, fText)); in clone()
42 typedef ProgramElement INHERITED;
DSkSLProgram.h117 ProgramElement& operator*() {
142 using inner = std::vector<std::unique_ptr<ProgramElement>>::iterator;
160 const ProgramElement& operator*() {
185 using inner = std::vector<std::unique_ptr<ProgramElement>>::const_iterator;
213 std::vector<std::unique_ptr<ProgramElement>>* inheritedElements, in Program()
214 std::vector<std::unique_ptr<ProgramElement>> elements, in Program()
269 std::vector<std::unique_ptr<ProgramElement>>* fInheritedElements;
270 std::vector<std::unique_ptr<ProgramElement>> fElements;
DSkSLEnum.h17 struct Enum : public ProgramElement {
23 std::unique_ptr<ProgramElement> clone() const override { in clone()
24 return std::unique_ptr<ProgramElement>(new Enum(fOffset, fTypeName, fSymbols)); in clone()
49 typedef ProgramElement INHERITED;
DSkSLProgramElement.h18 struct ProgramElement : public IRNode { struct
29 ProgramElement(int offset, Kind kind) in ProgramElement() argument
35 virtual std::unique_ptr<ProgramElement> clone() const = 0; argument
DSkSLInterfaceBlock.h27 struct InterfaceBlock : public ProgramElement {
38 std::unique_ptr<ProgramElement> clone() const override { in clone()
43 return std::unique_ptr<ProgramElement>(new InterfaceBlock(fOffset, &fVariable, fTypeName, in clone()
78 typedef ProgramElement INHERITED;
DSkSLVarDeclarations.h70 struct VarDeclarations : public ProgramElement {
80 std::unique_ptr<ProgramElement> clone() const override { in clone()
86 return std::unique_ptr<ProgramElement>(new VarDeclarations(fOffset, &fBaseType, in clone()
110 typedef ProgramElement INHERITED;
/external/skia/src/sksl/
DSkSLAnalysis.h25 class ProgramElement; variable
144 static void ValidateIndexingForES2(const ProgramElement& pe, ErrorReporter& errors);
173 virtual bool visitProgramElement(typename T::ProgramElement& programElement);
184 using ProgramElement = const SkSL::ProgramElement; member
193 using ProgramElement = SkSL::ProgramElement; member
DSkSLIRGenerator.h56 void insertOrDie(String key, std::unique_ptr<ProgramElement> element) { in insertOrDie()
61 const ProgramElement* find(const String& key) { in find()
70 const ProgramElement* findAndInclude(const String& key) { in findAndInclude()
93 std::unique_ptr<ProgramElement> fIntrinsic;
110 std::vector<std::unique_ptr<ProgramElement>> fElements;
111 std::vector<const ProgramElement*> fSharedElements;
157 std::vector<std::unique_ptr<ProgramElement>>* elements,
158 std::vector<const ProgramElement*>* sharedElements);
270 std::vector<std::unique_ptr<ProgramElement>>* fProgramElements = nullptr;
271 std::vector<const ProgramElement*>* fSharedElements = nullptr;
DSkSLSectionAndParameterHelper.cpp29 for (const ProgramElement* p : fProgram.elements()) { in SectionAndParameterHelper()
31 case ProgramElement::Kind::kGlobalVar: { in SectionAndParameterHelper()
39 case ProgramElement::Kind::kSection: { in SectionAndParameterHelper()
/external/skia/include/private/
DSkSLProgramElement.h20 class ProgramElement : public IRNode {
37 ProgramElement(int offset, Kind kind) in ProgramElement() function
70 virtual std::unique_ptr<ProgramElement> clone() const = 0;
/external/skia/src/sksl/codegen/
DSkSLPipelineStageCodeGenerator.cpp94 void writeProgramElement(const ProgramElement& e);
153 for (const ProgramElement* p : fProgram.elements()) { in writeFunctionCall()
344 void PipelineStageCodeGenerator::writeProgramElement(const ProgramElement& e) { in writeProgramElement()
346 case ProgramElement::Kind::kGlobalVar: in writeProgramElement()
349 case ProgramElement::Kind::kFunction: in writeProgramElement()
352 case ProgramElement::Kind::kFunctionPrototype: in writeProgramElement()
356 case ProgramElement::Kind::kStructDefinition: in writeProgramElement()
361 case ProgramElement::Kind::kEnum: // skbug.com/11296 in writeProgramElement()
363 case ProgramElement::Kind::kExtension: in writeProgramElement()
364 case ProgramElement::Kind::kInterfaceBlock: in writeProgramElement()
[all …]
/external/skqp/src/sksl/
DSkSLPipelineStageCodeGenerator.cpp86 if (ProgramElement::kVar_Kind == p.fKind) { in writeFunctionCall()
141 if (e.fKind == ProgramElement::Kind::kVar_Kind) { in writeVariableReference()
211 void PipelineStageCodeGenerator::writeProgramElement(const ProgramElement& p) { in writeProgramElement()
212 if (p.fKind == ProgramElement::kSection_Kind) { in writeProgramElement()
215 if (p.fKind == ProgramElement::kVar_Kind) { in writeProgramElement()

123