/third_party/skia/third_party/externals/tint/src/reader/wgsl/ |
D | parser_impl_variable_decoration_list_test.cc | 24 auto decos = p->decoration_list(); in TEST_F() local 26 ASSERT_FALSE(decos.errored); in TEST_F() 27 ASSERT_TRUE(decos.matched); in TEST_F() 28 ASSERT_EQ(decos.value.size(), 2u); in TEST_F() 30 auto* deco_0 = decos.value[0]->As<ast::Decoration>(); in TEST_F() 31 auto* deco_1 = decos.value[1]->As<ast::Decoration>(); in TEST_F() 44 auto decos = p->decoration_list(); in TEST_F() local 46 EXPECT_TRUE(decos.errored); in TEST_F() 47 EXPECT_FALSE(decos.matched); in TEST_F() 48 EXPECT_TRUE(decos.value.empty()); in TEST_F() [all …]
|
D | parser_impl_struct_decl_test.cc | 29 auto decos = p->decoration_list(); in TEST_F() local 30 EXPECT_FALSE(decos.errored); in TEST_F() 31 EXPECT_FALSE(decos.matched); in TEST_F() 32 ASSERT_EQ(decos.value.size(), 0u); in TEST_F() 34 auto s = p->struct_decl(decos.value); in TEST_F() 51 auto decos = p->decoration_list(); in TEST_F() local 52 EXPECT_FALSE(decos.errored); in TEST_F() 53 EXPECT_TRUE(decos.matched); in TEST_F() 54 ASSERT_EQ(decos.value.size(), 1u); in TEST_F() 56 auto s = p->struct_decl(decos.value); in TEST_F() [all …]
|
D | parser_impl_struct_member_decoration_decl_test.cc | 24 auto decos = p->decoration_list(); in TEST_F() local 26 EXPECT_FALSE(decos.errored); in TEST_F() 27 EXPECT_FALSE(decos.matched); in TEST_F() 28 EXPECT_EQ(decos.value.size(), 0u); in TEST_F() 33 auto decos = p->decoration_list(); in TEST_F() local 35 EXPECT_TRUE(decos.errored); in TEST_F() 36 EXPECT_FALSE(decos.matched); in TEST_F() 37 EXPECT_EQ(decos.value.size(), 0u); in TEST_F() 43 auto decos = p->decoration_list(); in TEST_F() local 45 EXPECT_FALSE(decos.errored); in TEST_F() [all …]
|
D | parser_impl_function_decoration_list_test.cc | 25 auto decos = p->decoration_list(); in TEST_F() local 27 EXPECT_FALSE(decos.errored); in TEST_F() 28 EXPECT_TRUE(decos.matched); in TEST_F() 29 ASSERT_EQ(decos.value.size(), 2u); in TEST_F() 31 auto* deco_0 = decos.value[0]->As<ast::Decoration>(); in TEST_F() 32 auto* deco_1 = decos.value[1]->As<ast::Decoration>(); in TEST_F() 51 auto decos = p->decoration_list(); in TEST_F() local 53 EXPECT_TRUE(decos.errored); in TEST_F() 54 EXPECT_FALSE(decos.matched); in TEST_F() 60 auto decos = p->decoration_list(); in TEST_F() local [all …]
|
D | parser_impl_struct_member_test.cc | 27 auto decos = p->decoration_list(); in TEST_F() local 28 EXPECT_FALSE(decos.errored); in TEST_F() 29 EXPECT_FALSE(decos.matched); in TEST_F() 30 EXPECT_EQ(decos.value.size(), 0u); in TEST_F() 32 auto m = p->expect_struct_member(decos.value); in TEST_F() 50 auto decos = p->decoration_list(); in TEST_F() local 51 EXPECT_FALSE(decos.errored); in TEST_F() 52 EXPECT_TRUE(decos.matched); in TEST_F() 53 EXPECT_EQ(decos.value.size(), 1u); in TEST_F() 55 auto m = p->expect_struct_member(decos.value); in TEST_F() [all …]
|
D | parser_impl_global_constant_decl_test.cc | 25 auto decos = p->decoration_list(); in TEST_F() local 26 EXPECT_FALSE(decos.errored); in TEST_F() 27 EXPECT_FALSE(decos.matched); in TEST_F() 28 auto e = p->global_constant_decl(decos.value); in TEST_F() 53 auto decos = p->decoration_list(); in TEST_F() local 54 EXPECT_FALSE(decos.errored); in TEST_F() 55 EXPECT_FALSE(decos.matched); in TEST_F() 56 auto e = p->global_constant_decl(decos.value); in TEST_F() 80 auto decos = p->decoration_list(); in TEST_F() local 81 EXPECT_FALSE(decos.errored); in TEST_F() [all …]
|
D | parser_impl_struct_decoration_decl_test.cc | 25 auto decos = p->decoration_list(); in TEST_F() local 27 EXPECT_FALSE(decos.errored); in TEST_F() 28 EXPECT_TRUE(decos.matched); in TEST_F() 29 ASSERT_EQ(decos.value.size(), 1u); in TEST_F() 30 auto* struct_deco = decos.value[0]->As<ast::Decoration>(); in TEST_F() 36 auto decos = p->decoration_list(); in TEST_F() local 38 EXPECT_TRUE(decos.errored); in TEST_F() 39 EXPECT_FALSE(decos.matched); in TEST_F() 40 EXPECT_TRUE(decos.value.empty()); in TEST_F() 46 auto decos = p->decoration_list(); in TEST_F() local [all …]
|
D | parser_impl_global_variable_decl_test.cc | 24 auto decos = p->decoration_list(); in TEST_F() local 25 EXPECT_FALSE(decos.errored); in TEST_F() 26 EXPECT_FALSE(decos.matched); in TEST_F() 27 auto e = p->global_variable_decl(decos.value); in TEST_F() 47 auto decos = p->decoration_list(); in TEST_F() local 48 EXPECT_FALSE(decos.errored); in TEST_F() 49 EXPECT_FALSE(decos.matched); in TEST_F() 50 auto e = p->global_variable_decl(decos.value); in TEST_F() 71 auto decos = p->decoration_list(); in TEST_F() local 72 EXPECT_FALSE(decos.errored); in TEST_F() [all …]
|
D | parser_impl_function_decl_test.cc | 25 auto decos = p->decoration_list(); in TEST_F() local 27 ASSERT_FALSE(decos.errored); in TEST_F() 28 EXPECT_FALSE(decos.matched); in TEST_F() 29 auto f = p->function_decl(decos.value); in TEST_F() 53 auto decos = p->decoration_list(); in TEST_F() local 55 ASSERT_FALSE(decos.errored); in TEST_F() 56 ASSERT_TRUE(decos.matched); in TEST_F() 57 auto f = p->function_decl(decos.value); in TEST_F() 92 auto decos = p->decoration_list(); in TEST_F() local 94 ASSERT_FALSE(decos.errored); in TEST_F() [all …]
|
D | parser_impl.cc | 360 auto decos = decoration_list(); in expect_global_decl() local 361 if (decos.errored) in expect_global_decl() 367 auto gv = global_variable_decl(decos.value); in expect_global_decl() 378 auto gc = global_constant_decl(decos.value); in expect_global_decl() 402 auto str = struct_decl(decos.value); in expect_global_decl() 421 return expect_decorations_consumed(decos.value); in expect_global_decl() 424 auto func = function_decl(decos.value); in expect_global_decl() 440 if (decos.value.size() > 0) { in expect_global_decl() 475 ast::DecorationList& decos) { in global_variable_decl() argument 498 std::move(decos)); // decorations in global_variable_decl() [all …]
|
D | parser_impl.h | 392 Maybe<const ast::Variable*> global_variable_decl(ast::DecorationList& decos); 397 Maybe<const ast::Variable*> global_constant_decl(ast::DecorationList& decos); 425 Maybe<const ast::Type*> type_decl(ast::DecorationList& decos); 434 Maybe<const ast::Struct*> struct_decl(ast::DecorationList& decos); 443 Expect<ast::StructMember*> expect_struct_member(ast::DecorationList& decos); 448 Maybe<const ast::Function*> function_decl(ast::DecorationList& decos); 682 Maybe<bool> decoration_bracketed_list(ast::DecorationList& decos); 856 ast::DecorationList decos);
|
D | parser_impl_type_decl_test.cc | 517 auto& decos = a->decorations; in TEST_F() local 518 ASSERT_EQ(decos.size(), 2u); in TEST_F() 519 EXPECT_TRUE(decos[0]->Is<ast::StrideDecoration>()); in TEST_F() 520 EXPECT_EQ(decos[0]->As<ast::StrideDecoration>()->stride, 16u); in TEST_F() 521 EXPECT_TRUE(decos[1]->Is<ast::StrideDecoration>()); in TEST_F() 522 EXPECT_EQ(decos[1]->As<ast::StrideDecoration>()->stride, 32u); in TEST_F() 539 auto& decos = a->decorations; in TEST_F() local 540 ASSERT_EQ(decos.size(), 2u); in TEST_F() 541 EXPECT_TRUE(decos[0]->Is<ast::StrideDecoration>()); in TEST_F() 542 EXPECT_EQ(decos[0]->As<ast::StrideDecoration>()->stride, 16u); in TEST_F() [all …]
|
D | parser_impl_variable_ident_decl_test.cc | 87 ast::DecorationList decos; in TEST_F() local 88 decos.push_back(block_deco); in TEST_F()
|
/third_party/skia/third_party/externals/tint/src/ast/ |
D | struct_member.cc | 28 DecorationList decos) in StructMember() argument 29 : Base(pid, src), symbol(sym), type(ty), decorations(std::move(decos)) { in StructMember() 48 auto decos = ctx->Clone(decorations); in Clone() local 49 return ctx->dst->create<StructMember>(src, sym, ty, decos); in Clone()
|
D | struct.cc | 31 DecorationList decos) in Struct() argument 32 : Base(pid, src, n), members(std::move(m)), decorations(std::move(decos)) { in Struct() 56 auto decos = ctx->Clone(decorations); in Clone() local 57 return ctx->dst->create<Struct>(src, n, mem, decos); in Clone()
|
D | array.cc | 46 DecorationList decos) in Array() argument 47 : Base(pid, src), type(subtype), count(cnt), decorations(decos) {} in Array() 73 auto decos = ctx->Clone(decorations); in Clone() local 74 return ctx->dst->create<Array>(src, ty, cnt, decos); in Clone()
|
D | variable.cc | 34 DecorationList decos) in Variable() argument 40 decorations(std::move(decos)), in Variable() 70 auto decos = ctx->Clone(decorations); in Clone() local 72 declared_access, ty, is_const, ctor, decos); in Clone()
|
D | function.cc | 32 DecorationList decos, in Function() argument 39 decorations(std::move(decos)), in Function() 75 auto decos = ctx->Clone(decorations); in Clone() local 77 return ctx->dst->create<Function>(src, sym, p, ret, b, decos, ret_decos); in Clone()
|
D | struct_test.cc | 52 DecorationList decos; in TEST_F() local 53 decos.push_back(create<StructBlockDecoration>()); in TEST_F() 56 create<Struct>(name, StructMemberList{Member("a", ty.i32())}, decos); in TEST_F()
|
/third_party/skia/third_party/externals/tint/tools/src/cmd/intrinsic-gen/parser/ |
D | parser.go | 93 decos := p.decorations() 95 return ast.EnumEntry{Source: name.Source, Decorations: decos, Name: string(name.Runes)} 112 func (p *parser) typeDecl(decos ast.Decorations) ast.TypeDecl { 117 Decorations: decos, 156 func (p *parser) functionDecl(decos ast.Decorations) ast.FunctionDecl { 161 Decorations: decos,
|
/third_party/skia/third_party/externals/tint/src/transform/ |
D | transform.cc | 120 ast::DecorationList decos; in CreateASTTypeFor() local 122 decos.emplace_back(ctx.dst->create<ast::StrideDecoration>(a->Stride())); in CreateASTTypeFor() 125 return ctx.dst->ty.array(el, nullptr, std::move(decos)); in CreateASTTypeFor() 127 return ctx.dst->ty.array(el, a->Count(), std::move(decos)); in CreateASTTypeFor()
|
D | wrap_arrays_in_structs.cc | 140 ast::DecorationList decos; in WrapArray() local 142 decos.emplace_back( in WrapArray() 145 return c.dst->ty.array(el_type(c), array->Count(), std::move(decos)); in WrapArray()
|
D | module_scope_var_to_entry_point_param.cc | 190 auto decos = ctx.Clone(var->Declaration()->decorations); in Process() local 191 decos.push_back(disable_validation); in Process() 192 auto* param = ctx.dst->Param(new_var_symbol, store_type(), decos); in Process()
|
/third_party/skia/third_party/externals/tint/src/resolver/ |
D | decoration_validation_test.cc | 255 auto decos = createDecorations(Source{{12, 34}}, *this, params.kind); in TEST_P() local 258 decos.push_back(Builtin(Source{{34, 56}}, ast::Builtin::kPosition)); in TEST_P() 260 auto* p = Param("a", ty.vec4<f32>(), decos); in TEST_P() 294 auto decos = createDecorations(Source{{12, 34}}, *this, params.kind); in TEST_P() local 296 decos.push_back(Location(Source{{34, 56}}, 2)); in TEST_P() 298 auto* p = Param("a", ty.vec4<f32>(), decos); in TEST_P() 392 auto decos = createDecorations(Source{{12, 34}}, *this, params.kind); in TEST_P() local 393 decos.push_back(Location(Source{{34, 56}}, 2)); in TEST_P() 395 {Stage(ast::PipelineStage::kFragment)}, decos); in TEST_P() 442 auto decos = createDecorations(Source{{12, 34}}, *this, params.kind); in TEST_P() local [all …]
|
/third_party/skia/third_party/externals/tint/src/reader/spirv/ |
D | function.h | 444 ast::DecorationList* decos, 473 ast::DecorationList* decos, 485 void IncrementLocation(ast::DecorationList* decos); 490 const ast::Decoration* GetLocation(const ast::DecorationList& decos);
|