Home
last modified time | relevance | path

Searched refs:ProgramBuilder (Results 1 – 25 of 99) sorted by relevance

1234

/third_party/skia/third_party/externals/tint/src/
Dprogram_builder.cc27 ProgramBuilder::VarOptionals::~VarOptionals() = default;
29 ProgramBuilder::ProgramBuilder() in ProgramBuilder() function in tint::ProgramBuilder
33 ProgramBuilder::ProgramBuilder(ProgramBuilder&& rhs) in ProgramBuilder() function in tint::ProgramBuilder
46 ProgramBuilder::~ProgramBuilder() = default;
48 ProgramBuilder& ProgramBuilder::operator=(ProgramBuilder&& rhs) { in operator =()
63 ProgramBuilder ProgramBuilder::Wrap(const Program* program) { in Wrap()
64 ProgramBuilder builder; in Wrap()
76 bool ProgramBuilder::IsValid() const { in IsValid()
80 void ProgramBuilder::MarkAsMoved() { in MarkAsMoved()
85 void ProgramBuilder::AssertNotMoved() const { in AssertNotMoved()
[all …]
Dclone_context_test.cc101 ProgramBuilder builder; in TEST_F()
124 ProgramBuilder cloned; in TEST_F()
160 ProgramBuilder builder; in TEST_F()
184 ProgramBuilder cloned; in TEST_F()
257 ProgramBuilder builder; in TEST_F()
280 ProgramBuilder cloned; in TEST_F()
299 ProgramBuilder builder; in TEST_F()
303 ProgramBuilder cloned; in TEST_F()
317 ProgramBuilder builder; in TEST_F()
329 ProgramBuilder cloned; in TEST_F()
[all …]
Dprogram_test.cc40 Program program_a(ProgramBuilder{}); in TEST_F()
41 Program program_b(ProgramBuilder{}); in TEST_F()
42 Program program_c(ProgramBuilder{}); in TEST_F()
58 ProgramBuilder b; in TEST_F()
67 ProgramBuilder b; in TEST_F()
76 ProgramBuilder b; in TEST_F()
Dprogram_builder_test.cc25 Program program_a(ProgramBuilder{}); in TEST_F()
26 Program program_b(ProgramBuilder{}); in TEST_F()
27 Program program_c(ProgramBuilder{}); in TEST_F()
35 ProgramBuilder builder; in TEST_F()
45 ProgramBuilder outer = ProgramBuilder::Wrap(&inner); in TEST_F()
/third_party/skia/third_party/externals/tint/src/ast/
Dintrinsic_texture_helper_test.cc26 using u32 = ProgramBuilder::u32;
27 using i32 = ProgramBuilder::i32;
28 using f32 = ProgramBuilder::f32;
38 std::function<ExpressionList(ProgramBuilder*)> a) in TextureOverloadCase()
54 std::function<ExpressionList(ProgramBuilder*)> a) in TextureOverloadCase()
70 std::function<ExpressionList(ProgramBuilder*)> a) in TextureOverloadCase()
138 ProgramBuilder* b) const { in BuildResultVectorComponentType()
153 ProgramBuilder* b) const { in BuildTextureVariable()
192 ProgramBuilder* b) const { in BuildSamplerVariable()
210 [](ProgramBuilder* b) { return b->ExprList("texture"); }, in ValidCases()
[all …]
Dif_statement_test.cc45 ProgramBuilder b; in TEST_F()
54 ProgramBuilder b; in TEST_F()
63 ProgramBuilder b; in TEST_F()
73 ProgramBuilder b1; in TEST_F()
74 ProgramBuilder b2; in TEST_F()
83 ProgramBuilder b1; in TEST_F()
84 ProgramBuilder b2; in TEST_F()
93 ProgramBuilder b1; in TEST_F()
94 ProgramBuilder b2; in TEST_F()
Dfor_loop_statement_test.cc56 ProgramBuilder b; in TEST_F()
65 ProgramBuilder b1; in TEST_F()
66 ProgramBuilder b2; in TEST_F()
75 ProgramBuilder b1; in TEST_F()
76 ProgramBuilder b2; in TEST_F()
85 ProgramBuilder b1; in TEST_F()
86 ProgramBuilder b2; in TEST_F()
95 ProgramBuilder b1; in TEST_F()
96 ProgramBuilder b2; in TEST_F()
Dfunction_test.cc53 ProgramBuilder b; in TEST_F()
63 ProgramBuilder b; in TEST_F()
72 ProgramBuilder b; in TEST_F()
85 ProgramBuilder b1; in TEST_F()
86 ProgramBuilder b2; in TEST_F()
95 ProgramBuilder b1; in TEST_F()
96 ProgramBuilder b2; in TEST_F()
106 ProgramBuilder b1; in TEST_F()
107 ProgramBuilder b2; in TEST_F()
119 ProgramBuilder b1; in TEST_F()
[all …]
Dcall_expression_test.cc87 ProgramBuilder b; in TEST_F()
97 ProgramBuilder b; in TEST_F()
106 ProgramBuilder b; in TEST_F()
119 ProgramBuilder b1; in TEST_F()
120 ProgramBuilder b2; in TEST_F()
129 ProgramBuilder b1; in TEST_F()
130 ProgramBuilder b2; in TEST_F()
139 ProgramBuilder b1; in TEST_F()
140 ProgramBuilder b2; in TEST_F()
Dmodule_test.cc47 ProgramBuilder builder; in TEST_F()
56 ProgramBuilder builder; in TEST_F()
65 ProgramBuilder b1; in TEST_F()
66 ProgramBuilder b2; in TEST_F()
77 ProgramBuilder b1; in TEST_F()
78 ProgramBuilder b2; in TEST_F()
88 ProgramBuilder builder; in TEST_F()
97 ProgramBuilder b; in TEST_F()
107 ProgramBuilder cloned; in TEST_F()
Dstruct_member_test.cc52 ProgramBuilder b; in TEST_F()
61 ProgramBuilder b; in TEST_F()
70 ProgramBuilder b; in TEST_F()
79 ProgramBuilder b1; in TEST_F()
80 ProgramBuilder b2; in TEST_F()
89 ProgramBuilder b1; in TEST_F()
90 ProgramBuilder b2; in TEST_F()
Dmember_accessor_expression_test.cc50 ProgramBuilder b; in TEST_F()
59 ProgramBuilder b; in TEST_F()
68 ProgramBuilder b1; in TEST_F()
69 ProgramBuilder b2; in TEST_F()
79 ProgramBuilder b1; in TEST_F()
80 ProgramBuilder b2; in TEST_F()
Dindex_accessor_expression_test.cc54 ProgramBuilder b; in TEST_F()
63 ProgramBuilder b; in TEST_F()
72 ProgramBuilder b1; in TEST_F()
73 ProgramBuilder b2; in TEST_F()
82 ProgramBuilder b1; in TEST_F()
83 ProgramBuilder b2; in TEST_F()
Dassignment_statement_test.cc57 ProgramBuilder b; in TEST_F()
66 ProgramBuilder b; in TEST_F()
75 ProgramBuilder b1; in TEST_F()
76 ProgramBuilder b2; in TEST_F()
85 ProgramBuilder b1; in TEST_F()
86 ProgramBuilder b2; in TEST_F()
Dbinary_expression_test.cc56 ProgramBuilder b; in TEST_F()
65 ProgramBuilder b; in TEST_F()
74 ProgramBuilder b1; in TEST_F()
75 ProgramBuilder b2; in TEST_F()
85 ProgramBuilder b1; in TEST_F()
86 ProgramBuilder b2; in TEST_F()
Dswitch_statement_test.cc66 ProgramBuilder b; in TEST_F()
78 ProgramBuilder b; in TEST_F()
87 ProgramBuilder b1; in TEST_F()
88 ProgramBuilder b2; in TEST_F()
103 ProgramBuilder b1; in TEST_F()
104 ProgramBuilder b2; in TEST_F()
Dintrinsic_texture_helper_test.h197 std::function<ExpressionList(ProgramBuilder*)>);
205 std::function<ExpressionList(ProgramBuilder*)>);
214 std::function<ExpressionList(ProgramBuilder*)>);
227 ProgramBuilder* builder) const;
231 const ast::Variable* BuildTextureVariable(ProgramBuilder* builder) const;
235 const ast::Variable* BuildSamplerVariable(ProgramBuilder* builder) const;
259 std::function<ExpressionList(ProgramBuilder*)> const args;
Delse_statement_test.cc66 ProgramBuilder b; in TEST_F()
75 ProgramBuilder b1; in TEST_F()
76 ProgramBuilder b2; in TEST_F()
85 ProgramBuilder b1; in TEST_F()
86 ProgramBuilder b2; in TEST_F()
/third_party/skia/third_party/externals/tint/src/resolver/
Dresolver_test_helper.h33 class TestHelper : public ProgramBuilder {
125 using i32 = ProgramBuilder::i32;
126 using u32 = ProgramBuilder::u32;
127 using f32 = ProgramBuilder::f32;
177 using ast_type_func_ptr = const ast::Type* (*)(ProgramBuilder& b);
178 using ast_expr_func_ptr = const ast::Expression* (*)(ProgramBuilder& b,
180 using sem_type_func_ptr = const sem::Type* (*)(ProgramBuilder& b);
193 static inline const ast::Type* AST(ProgramBuilder& b) { return b.ty.bool_(); }
196 static inline const sem::Type* Sem(ProgramBuilder& b) {
202 static inline const ast::Expression* Expr(ProgramBuilder& b, int elem_value) {
[all …]
/third_party/skia/third_party/externals/tint/src/reader/spirv/
Dparser_type.h32 class ProgramBuilder; variable
47 virtual const ast::Type* Build(ProgramBuilder& b) const = 0;
98 const ast::Type* Build(ProgramBuilder& b) const override;
110 const ast::Type* Build(ProgramBuilder& b) const override;
122 const ast::Type* Build(ProgramBuilder& b) const override;
134 const ast::Type* Build(ProgramBuilder& b) const override;
146 const ast::Type* Build(ProgramBuilder& b) const override;
167 const ast::Type* Build(ProgramBuilder& b) const override;
195 const ast::Type* Build(ProgramBuilder& b) const override;
221 const ast::Type* Build(ProgramBuilder& b) const override;
[all …]
/third_party/skia/third_party/externals/tint/src/transform/
Dtransform_test.cc30 std::function<sem::Type*(ProgramBuilder&)> create_sem_type) { in create()
31 ProgramBuilder sem_type_builder; in create()
38 ProgramBuilder ast_type_builder;
42 EXPECT_TRUE(create([](ProgramBuilder& b) { in TEST_F()
45 EXPECT_TRUE(create([](ProgramBuilder& b) { in TEST_F()
48 EXPECT_TRUE(create([](ProgramBuilder& b) { in TEST_F()
51 EXPECT_TRUE(create([](ProgramBuilder& b) { in TEST_F()
54 EXPECT_TRUE(create([](ProgramBuilder& b) { in TEST_F()
60 auto* mat = create([](ProgramBuilder& b) { in TEST_F()
71 auto* vec = create([](ProgramBuilder& b) { in TEST_F()
[all …]
/third_party/skia/third_party/externals/tint/src/writer/glsl/
Dgenerator_impl_member_accessor_test.cc28 const ast::Type* (*)(const ProgramBuilder::TypesBuilder& ty);
30 inline const ast::Type* ty_i32(const ProgramBuilder::TypesBuilder& ty) { in ty_i32()
33 inline const ast::Type* ty_u32(const ProgramBuilder::TypesBuilder& ty) { in ty_u32()
36 inline const ast::Type* ty_f32(const ProgramBuilder::TypesBuilder& ty) { in ty_f32()
40 inline const ast::Type* ty_vec2(const ProgramBuilder::TypesBuilder& ty) { in ty_vec2()
44 inline const ast::Type* ty_vec3(const ProgramBuilder::TypesBuilder& ty) { in ty_vec3()
48 inline const ast::Type* ty_vec4(const ProgramBuilder::TypesBuilder& ty) { in ty_vec4()
52 inline const ast::Type* ty_mat2x2(const ProgramBuilder::TypesBuilder& ty) { in ty_mat2x2()
56 inline const ast::Type* ty_mat2x3(const ProgramBuilder::TypesBuilder& ty) { in ty_mat2x3()
60 inline const ast::Type* ty_mat2x4(const ProgramBuilder::TypesBuilder& ty) { in ty_mat2x4()
[all …]
/third_party/skia/third_party/externals/tint/src/writer/hlsl/
Dgenerator_impl_member_accessor_test.cc28 const ast::Type* (*)(const ProgramBuilder::TypesBuilder& ty);
30 inline const ast::Type* ty_i32(const ProgramBuilder::TypesBuilder& ty) { in ty_i32()
33 inline const ast::Type* ty_u32(const ProgramBuilder::TypesBuilder& ty) { in ty_u32()
36 inline const ast::Type* ty_f32(const ProgramBuilder::TypesBuilder& ty) { in ty_f32()
40 inline const ast::Type* ty_vec2(const ProgramBuilder::TypesBuilder& ty) { in ty_vec2()
44 inline const ast::Type* ty_vec3(const ProgramBuilder::TypesBuilder& ty) { in ty_vec3()
48 inline const ast::Type* ty_vec4(const ProgramBuilder::TypesBuilder& ty) { in ty_vec4()
52 inline const ast::Type* ty_mat2x2(const ProgramBuilder::TypesBuilder& ty) { in ty_mat2x2()
56 inline const ast::Type* ty_mat2x3(const ProgramBuilder::TypesBuilder& ty) { in ty_mat2x3()
60 inline const ast::Type* ty_mat2x4(const ProgramBuilder::TypesBuilder& ty) { in ty_mat2x4()
[all …]
/third_party/skia/third_party/externals/tint/src/sem/
Dconstant.h29 using i32 = ProgramBuilder::i32;
30 using u32 = ProgramBuilder::u32;
31 using f32 = ProgramBuilder::f32;
48 Scalar(ProgramBuilder::i32 v) : i32(v) {} // NOLINT in Scalar()
52 Scalar(ProgramBuilder::u32 v) : u32(v) {} // NOLINT in Scalar()
56 Scalar(ProgramBuilder::f32 v) : f32(v) {} // NOLINT in Scalar()
/third_party/skia/third_party/externals/tint/docs/
Darch.md17ProgramBuilder
59 `ProgramBuilder` with the parsed AST, type and symbol information.
64 ## ProgramBuilder section in Tint Architecture
66 A `ProgramBuilder` is the primary interface to construct an immutable `Program`.
68 simpler. A `ProgramBuilder` can only be used once, and must be discarded after
71 A `Program` is built from the `ProgramBuilder` by `std::move()`ing the
72 `ProgramBuilder` to a new `Program` object. When built, resolution is performed
75 At any time before building the `Program`, `ProgramBuilder::IsValid()` may be
80 new `ProgramBuilder` can be produced by cloning the `Program` into a new
81 `ProgramBuilder`.
[all …]

1234