Lines Matching refs:SkSL

16     SkSL::TestingOnly_AbortErrorReporter errors;
18 SkSL::Mangler mangler;
19 SkSL::Context context(errors, caps, mangler);
20 SkSL::MemoryLayout layout(SkSL::MemoryLayout::k140_Standard);
59 std::vector<SkSL::Type::Field> fields1;
60 fields1.emplace_back(SkSL::Modifiers(), skstd::string_view("a"),
62 std::unique_ptr<SkSL::Type> s1 = SkSL::Type::MakeStructType(-1, SkSL::String("s1"), fields1);
66 fields1.emplace_back(SkSL::Modifiers(), skstd::string_view("b"), context.fTypes.fFloat.get());
67 std::unique_ptr<SkSL::Type> s2 = SkSL::Type::MakeStructType(-1, SkSL::String("s2"), fields1);
71 fields1.emplace_back(SkSL::Modifiers(), skstd::string_view("c"), context.fTypes.fBool.get());
72 std::unique_ptr<SkSL::Type> s3 = SkSL::Type::MakeStructType(-1, SkSL::String("s3"), fields1);
77 std::vector<SkSL::Type::Field> fields2;
78 fields2.emplace_back(SkSL::Modifiers(), skstd::string_view("a"), context.fTypes.fInt.get());
79 std::unique_ptr<SkSL::Type> s4 = SkSL::Type::MakeStructType(-1, SkSL::String("s4"), fields2);
83 fields2.emplace_back(SkSL::Modifiers(), skstd::string_view("b"),
85 std::unique_ptr<SkSL::Type> s5 = SkSL::Type::MakeStructType(-1, SkSL::String("s5"), fields2);
90 std::unique_ptr<SkSL::Type> array1 =
91 SkSL::Type::MakeArrayType(SkSL::String("float[4]"), *context.fTypes.fFloat, 4);
96 std::unique_ptr<SkSL::Type> array2 =
97 SkSL::Type::MakeArrayType(SkSL::String("float4[4]"), *context.fTypes.fFloat4, 4);
104 SkSL::TestingOnly_AbortErrorReporter errors;
106 SkSL::Mangler mangler;
107 SkSL::Context context(errors, caps, mangler);
108 SkSL::MemoryLayout layout(SkSL::MemoryLayout::k430_Standard);
147 std::vector<SkSL::Type::Field> fields1;
148 fields1.emplace_back(SkSL::Modifiers(), skstd::string_view("a"),
150 std::unique_ptr<SkSL::Type> s1 = SkSL::Type::MakeStructType(-1, SkSL::String("s1"), fields1);
154 fields1.emplace_back(SkSL::Modifiers(), skstd::string_view("b"), context.fTypes.fFloat.get());
155 std::unique_ptr<SkSL::Type> s2 = SkSL::Type::MakeStructType(-1, SkSL::String("s2"), fields1);
159 fields1.emplace_back(SkSL::Modifiers(), skstd::string_view("c"), context.fTypes.fBool.get());
160 std::unique_ptr<SkSL::Type> s3 = SkSL::Type::MakeStructType(-1, SkSL::String("s3"), fields1);
165 std::vector<SkSL::Type::Field> fields2;
166 fields2.emplace_back(SkSL::Modifiers(), skstd::string_view("a"), context.fTypes.fInt.get());
167 std::unique_ptr<SkSL::Type> s4 = SkSL::Type::MakeStructType(-1, SkSL::String("s4"), fields2);
171 fields2.emplace_back(SkSL::Modifiers(), skstd::string_view("b"),
173 std::unique_ptr<SkSL::Type> s5 = SkSL::Type::MakeStructType(-1, SkSL::String("s5"), fields2);
178 std::unique_ptr<SkSL::Type> array1 =
179 SkSL::Type::MakeArrayType(SkSL::String("float[4]"), *context.fTypes.fFloat, 4);
184 std::unique_ptr<SkSL::Type> array2 =
185 SkSL::Type::MakeArrayType(SkSL::String("float4[4]"), *context.fTypes.fFloat4, 4);