/third_party/skia/third_party/externals/tint/src/ |
D | program_builder.cc | 27 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 …]
|
D | clone_context_test.cc | 101 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 …]
|
D | program_test.cc | 40 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()
|
D | program_builder_test.cc | 25 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/ |
D | intrinsic_texture_helper_test.cc | 26 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 …]
|
D | if_statement_test.cc | 45 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()
|
D | for_loop_statement_test.cc | 56 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()
|
D | function_test.cc | 53 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 …]
|
D | call_expression_test.cc | 87 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()
|
D | module_test.cc | 47 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()
|
D | struct_member_test.cc | 52 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()
|
D | member_accessor_expression_test.cc | 50 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()
|
D | index_accessor_expression_test.cc | 54 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()
|
D | assignment_statement_test.cc | 57 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()
|
D | binary_expression_test.cc | 56 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()
|
D | switch_statement_test.cc | 66 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()
|
D | intrinsic_texture_helper_test.h | 197 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;
|
D | else_statement_test.cc | 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()
|
/third_party/skia/third_party/externals/tint/src/resolver/ |
D | resolver_test_helper.h | 33 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/ |
D | parser_type.h | 32 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/ |
D | transform_test.cc | 30 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/ |
D | generator_impl_member_accessor_test.cc | 28 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/ |
D | generator_impl_member_accessor_test.cc | 28 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/ |
D | constant.h | 29 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/ |
D | arch.md | 17 ┃ ProgramBuilder ┃ 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 …]
|