Home
last modified time | relevance | path

Searched refs:decos (Results 1 – 25 of 40) sorted by relevance

12

/third_party/skia/third_party/externals/tint/src/reader/wgsl/
Dparser_impl_variable_decoration_list_test.cc24 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 …]
Dparser_impl_struct_decl_test.cc29 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 …]
Dparser_impl_struct_member_decoration_decl_test.cc24 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 …]
Dparser_impl_function_decoration_list_test.cc25 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 …]
Dparser_impl_struct_member_test.cc27 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 …]
Dparser_impl_global_constant_decl_test.cc25 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 …]
Dparser_impl_struct_decoration_decl_test.cc25 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 …]
Dparser_impl_global_variable_decl_test.cc24 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 …]
Dparser_impl_function_decl_test.cc25 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 …]
Dparser_impl.cc360 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 …]
Dparser_impl.h392 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);
Dparser_impl_type_decl_test.cc517 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 …]
Dparser_impl_variable_ident_decl_test.cc87 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/
Dstruct_member.cc28 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()
Dstruct.cc31 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()
Darray.cc46 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()
Dvariable.cc34 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()
Dfunction.cc32 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()
Dstruct_test.cc52 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/
Dparser.go93 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/
Dtransform.cc120 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()
Dwrap_arrays_in_structs.cc140 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()
Dmodule_scope_var_to_entry_point_param.cc190 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/
Ddecoration_validation_test.cc255 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/
Dfunction.h444 ast::DecorationList* decos,
473 ast::DecorationList* decos,
485 void IncrementLocation(ast::DecorationList* decos);
490 const ast::Decoration* GetLocation(const ast::DecorationList& decos);

12