Home
last modified time | relevance | path

Searched refs:DSLType (Results 1 – 16 of 16) sorted by relevance

/third_party/skia/include/sksl/
DDSLType.h81 class DSLType {
83 DSLType(TypeConstant tc) in DSLType() function
86 DSLType(const SkSL::Type* type);
88 DSLType(skstd::string_view name);
90 DSLType(skstd::string_view name,
155 static DSLPossibleExpression Construct(DSLType type, DSLVarBase& var, Args&&... args) { in Construct()
161 static DSLPossibleExpression Construct(DSLType type, DSLExpression expr, Args&&... args) { in Construct()
166 static DSLPossibleExpression Construct(DSLType type, SkSpan<DSLExpression> argArray);
175 friend DSLType Array(const DSLType& base, int count, PositionInfo pos);
176 friend DSLType Struct(skstd::string_view name, SkSpan<DSLField> fields, PositionInfo pos);
[all …]
DDSLVar.h38 DSLVarBase(DSLType type, skstd::string_view name, DSLExpression initialValue, PositionInfo pos);
40 DSLVarBase(DSLType type, DSLExpression initialValue, PositionInfo pos);
42 DSLVarBase(const DSLModifiers& modifiers, DSLType type, skstd::string_view name,
45 DSLVarBase(const DSLModifiers& modifiers, DSLType type, DSLExpression initialValue,
126 DSLType fType;
153 DSLVar(DSLType type, skstd::string_view name = "var",
158 DSLVar(DSLType type, const char* name, DSLExpression initialValue = DSLExpression(),
162 DSLVar(DSLType type, DSLExpression initialValue, PositionInfo pos = PositionInfo::Capture())
165 DSLVar(const DSLModifiers& modifiers, DSLType type, skstd::string_view name = "var",
169 DSLVar(const DSLModifiers& modifiers, DSLType type, const char* name,
[all …]
DDSLFunction.h25 class DSLType; variable
30 DSLFunction(const DSLType& returnType, skstd::string_view name, Parameters&... parameters) in DSLFunction()
34 DSLFunction(const DSLModifiers& modifiers, const DSLType& returnType, skstd::string_view name, in DSLFunction()
48 DSLFunction(const DSLType& returnType, skstd::string_view name,
53 DSLFunction(const DSLModifiers& modifiers, const DSLType& returnType, skstd::string_view name,
105 void init(DSLModifiers modifiers, const DSLType& returnType, skstd::string_view name,
DDSLModifiers.h20 class DSLType; variable
52 friend DSLType Struct(skstd::string_view name, SkSpan<DSLField> fields, PositionInfo pos);
55 friend class DSLType; variable
DDSLExpression.h35 class DSLType; variable
95 DSLType type();
169 friend class DSLType; variable
243 DSLType type();
DBUILD.bazel17 "DSLType.h",
/third_party/skia/src/sksl/dsl/
DDSLType.cpp169 DSLType::DSLType(skstd::string_view name) in DSLType() function in SkSL::dsl::DSLType
172 DSLType::DSLType(skstd::string_view name, DSLModifiers* modifiers, PositionInfo position) in DSLType() function in SkSL::dsl::DSLType
175 DSLType::DSLType(const SkSL::Type* type) in DSLType() function in SkSL::dsl::DSLType
179 bool DSLType::isBoolean() const { in isBoolean()
183 bool DSLType::isNumber() const { in isNumber()
187 bool DSLType::isFloat() const { in isFloat()
191 bool DSLType::isSigned() const { in isSigned()
195 bool DSLType::isUnsigned() const { in isUnsigned()
199 bool DSLType::isInteger() const { in isInteger()
203 bool DSLType::isScalar() const { in isScalar()
[all …]
DDSLVar.cpp26 DSLVarBase::DSLVarBase(DSLType type, skstd::string_view name, DSLExpression initialValue, in DSLVarBase()
30 DSLVarBase::DSLVarBase(DSLType type, DSLExpression initialValue, PositionInfo pos) in DSLVarBase()
33 DSLVarBase::DSLVarBase(const DSLModifiers& modifiers, DSLType type, DSLExpression initialValue, in DSLVarBase()
37 DSLVarBase::DSLVarBase(const DSLModifiers& modifiers, DSLType type, skstd::string_view name, in DSLVarBase()
DDSLExpression.cpp128 DSLType DSLExpression::type() { in type()
296 DSLType DSLPossibleExpression::type() { in type()
DDSLFunction.cpp24 void DSLFunction::init(DSLModifiers modifiers, const DSLType& returnType, skstd::string_view name, in init()
DDSLCore.cpp256 DSLType varType = arraySize > 0 ? Array(structType, arraySize) : DSLType(structType); in InterfaceBlock()
/third_party/skia/tests/
DSkSLDSLTest.cpp485 DEF_GPUTEST_FOR_MOCK_CONTEXT(DSLType, r, ctxInfo) { in DEF_GPUTEST_FOR_MOCK_CONTEXT() argument
487 REPORTER_ASSERT(r, DSLType(kBool_Type).isBoolean()); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
488 REPORTER_ASSERT(r, !DSLType(kBool_Type).isNumber()); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
489 REPORTER_ASSERT(r, !DSLType(kBool_Type).isFloat()); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
490 REPORTER_ASSERT(r, !DSLType(kBool_Type).isSigned()); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
491 REPORTER_ASSERT(r, !DSLType(kBool_Type).isUnsigned()); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
492 REPORTER_ASSERT(r, !DSLType(kBool_Type).isInteger()); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
493 REPORTER_ASSERT(r, DSLType(kBool_Type).isScalar()); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
494 REPORTER_ASSERT(r, !DSLType(kBool_Type).isVector()); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
495 REPORTER_ASSERT(r, !DSLType(kBool_Type).isMatrix()); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
[all …]
/third_party/skia/src/sksl/
DSkSLDSLParser.h147 dsl::DSLType type,
153 dsl::DSLType fType = dsl::DSLType(dsl::kVoid_Type);
163 skstd::optional<dsl::DSLType> structDeclaration();
167 bool parseArrayDimensions(int line, dsl::DSLType* type);
172 dsl::DSLType baseType, skstd::string_view name);
175 dsl::DSLType baseType, skstd::string_view name);
189 skstd::optional<dsl::DSLType> type(dsl::DSLModifiers* modifiers);
DSkSLDSLParser.cpp335 skstd::optional<DSLType> type = this->type(&modifiers); in declaration()
353 DSLType type, in functionDeclarationEnd()
418 bool DSLParser::parseArrayDimensions(int line, DSLType* type) { in parseArrayDimensions()
446 dsl::DSLType baseType, skstd::string_view name) { in globalVarDeclarationEnd()
449 DSLType type = baseType; in globalVarDeclarationEnd()
485 dsl::DSLType baseType, skstd::string_view name) { in localVarDeclarationEnd()
488 DSLType type = baseType; in localVarDeclarationEnd()
558 skstd::optional<DSLType> type = this->type(&prefixData->fModifiers); in varDeclarationsPrefix()
577 skstd::optional<DSLType> DSLParser::structDeclaration() { in structDeclaration()
595 skstd::optional<DSLType> type = this->type(&modifiers); in structDeclaration()
[all …]
DBUILD.bazel81 "dsl/DSLType.cpp",
/third_party/skia/gn/
Dsksl.gni32 "$_include/sksl/DSLType.h",
98 "$_src/sksl/dsl/DSLType.cpp",