Home
last modified time | relevance | path

Searched refs:deco (Results 1 – 25 of 49) sorted by relevance

12

/third_party/skia/third_party/externals/tint/src/reader/wgsl/
Dparser_impl_variable_decoration_test.cc24 auto deco = p->decoration(); in TEST_F() local
25 EXPECT_TRUE(deco.matched); in TEST_F()
26 EXPECT_FALSE(deco.errored); in TEST_F()
27 ASSERT_NE(deco.value, nullptr); in TEST_F()
28 auto* var_deco = deco.value->As<ast::Decoration>(); in TEST_F()
39 auto deco = p->decoration(); in TEST_F() local
40 EXPECT_FALSE(deco.matched); in TEST_F()
41 EXPECT_TRUE(deco.errored); in TEST_F()
42 EXPECT_EQ(deco.value, nullptr); in TEST_F()
49 auto deco = p->decoration(); in TEST_F() local
[all …]
Dparser_impl_function_decoration_test.cc26 auto deco = p->decoration(); in TEST_F() local
27 EXPECT_TRUE(deco.matched); in TEST_F()
28 EXPECT_FALSE(deco.errored); in TEST_F()
29 ASSERT_NE(deco.value, nullptr) << p->error(); in TEST_F()
31 auto* func_deco = deco.value->As<ast::Decoration>(); in TEST_F()
46 auto deco = p->decoration(); in TEST_F() local
47 EXPECT_TRUE(deco.matched); in TEST_F()
48 EXPECT_FALSE(deco.errored); in TEST_F()
49 ASSERT_NE(deco.value, nullptr) << p->error(); in TEST_F()
51 auto* func_deco = deco.value->As<ast::Decoration>(); in TEST_F()
[all …]
Dparser_impl_struct_member_decoration_test.cc24 auto deco = p->decoration(); in TEST_F() local
25 EXPECT_TRUE(deco.matched); in TEST_F()
26 EXPECT_FALSE(deco.errored); in TEST_F()
27 ASSERT_NE(deco.value, nullptr); in TEST_F()
30 auto* member_deco = deco.value->As<ast::Decoration>(); in TEST_F()
40 auto deco = p->decoration(); in TEST_F() local
41 EXPECT_FALSE(deco.matched); in TEST_F()
42 EXPECT_TRUE(deco.errored); in TEST_F()
43 EXPECT_EQ(deco.value, nullptr); in TEST_F()
50 auto deco = p->decoration(); in TEST_F() local
[all …]
Dparser_impl_struct_decoration_test.cc38 auto deco = p->decoration(); in TEST_P() local
40 EXPECT_TRUE(deco.matched); in TEST_P()
41 EXPECT_FALSE(deco.errored); in TEST_P()
42 ASSERT_NE(deco.value, nullptr); in TEST_P()
43 auto* struct_deco = deco.value->As<ast::Decoration>(); in TEST_P()
53 auto deco = p->decoration(); in TEST_F() local
54 EXPECT_FALSE(deco.matched); in TEST_F()
55 EXPECT_FALSE(deco.errored); in TEST_F()
56 ASSERT_EQ(deco.value, nullptr); in TEST_F()
Dparser_impl_struct_member_decoration_decl_test.cc48 auto* deco = decos.value[0]->As<ast::Decoration>(); in TEST_F() local
49 ASSERT_NE(deco, nullptr); in TEST_F()
50 EXPECT_TRUE(deco->Is<ast::StructMemberSizeDecoration>()); in TEST_F()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/val/
Dval_annotation_test.cpp72 const auto deco = GetParam(); in TEST_P() local
78 deco + R"( in TEST_P()
90 const auto deco = GetParam(); in TEST_P() local
95 OpDecorate %struct )" + deco + in TEST_P()
117 const auto deco = GetParam(); in TEST_P() local
132 deco + R"( in TEST_P()
164 const std::string deco = GetParam(); in TEST_P() local
170 OpDecorate %struct )" + deco + in TEST_P()
180 const std::string deco = GetParam(); in TEST_P() local
186 OpDecorate %int )" + deco + R"( in TEST_P()
[all …]
/third_party/spirv-tools/test/val/
Dval_annotation_test.cpp72 const auto deco = GetParam(); in TEST_P() local
78 deco + R"( in TEST_P()
90 const auto deco = GetParam(); in TEST_P() local
95 OpDecorate %struct )" + deco + in TEST_P()
117 const auto deco = GetParam(); in TEST_P() local
132 deco + R"( in TEST_P()
164 const std::string deco = GetParam(); in TEST_P() local
170 OpDecorate %struct )" + deco + in TEST_P()
180 const std::string deco = GetParam(); in TEST_P() local
186 OpDecorate %int )" + deco + R"( in TEST_P()
[all …]
/third_party/skia/third_party/externals/spirv-tools/test/val/
Dval_annotation_test.cpp72 const auto deco = GetParam(); in TEST_P() local
78 deco + R"( in TEST_P()
90 const auto deco = GetParam(); in TEST_P() local
95 OpDecorate %struct )" + deco + in TEST_P()
117 const auto deco = GetParam(); in TEST_P() local
132 deco + R"( in TEST_P()
164 const std::string deco = GetParam(); in TEST_P() local
170 OpDecorate %struct )" + deco + in TEST_P()
180 const std::string deco = GetParam(); in TEST_P() local
186 OpDecorate %int )" + deco + R"( in TEST_P()
[all …]
/third_party/skia/third_party/externals/tint/src/resolver/
Dresolver_validation.cc124 std::string deco_to_str(const ast::Decoration* deco) { in deco_to_str() argument
126 if (auto* builtin = deco->As<ast::BuiltinDecoration>()) { in deco_to_str()
128 } else if (auto* location = deco->As<ast::LocationDecoration>()) { in deco_to_str()
454 for (auto* deco : decl->decorations) { in ValidateGlobalVariable() local
456 if (auto* override_deco = deco->As<ast::OverrideDecoration>()) { in ValidateGlobalVariable()
461 AddError("pipeline constant IDs must be unique", deco->source); in ValidateGlobalVariable()
472 deco->source); in ValidateGlobalVariable()
477 AddError("decoration is not valid for constants", deco->source); in ValidateGlobalVariable()
482 deco->IsAnyOf<ast::BuiltinDecoration, ast::InterpolateDecoration, in ValidateGlobalVariable()
487 if (!(deco->IsAnyOf<ast::BindingDecoration, ast::GroupDecoration, in ValidateGlobalVariable()
[all …]
Dresolver.cc525 for (auto* deco : var->decorations) { in GlobalVariable() local
526 Mark(deco); in GlobalVariable()
528 if (auto* override_deco = deco->As<ast::OverrideDecoration>()) { in GlobalVariable()
578 for (auto* deco : param->decorations) { in Function() local
579 Mark(deco); in Function()
677 for (auto* deco : decl->decorations) { in Function() local
678 Mark(deco); in Function()
684 for (auto* deco : decl->return_type_decorations) { in Function() local
685 Mark(deco); in Function()
714 auto* deco = ast::GetDecoration<ast::WorkgroupDecoration>(func->decorations); in WorkgroupSize() local
[all …]
Ddependency_graph.cc391 for (auto* deco : decos) { in TraverseDecorations() local
392 TraverseDecoration(deco); in TraverseDecorations()
398 void TraverseDecoration(const ast::Decoration* deco) { in TraverseDecoration() argument
399 if (auto* wg = deco->As<ast::WorkgroupDecoration>()) { in TraverseDecoration()
405 if (deco->IsAnyOf<ast::BindingDecoration, ast::BuiltinDecoration, in TraverseDecoration()
417 UnhandledNode(diagnostics_, deco); in TraverseDecoration()
/third_party/skia/third_party/externals/tint/src/ast/
Ddecoration.h48 for (auto* deco : decorations) { in HasDecoration()
49 if (deco->Is<T>()) { in HasDecoration()
60 for (auto* deco : decorations) { in GetDecoration()
61 if (deco->Is<T>()) { in GetDecoration()
62 return deco->As<T>(); in GetDecoration()
Dfunction.cc49 for (auto* deco : decorations) { in Function() local
50 TINT_ASSERT_PROGRAM_IDS_EQUAL_IF_VALID(AST, deco, program_id); in Function()
52 for (auto* deco : return_type_decorations) { in Function() local
53 TINT_ASSERT_PROGRAM_IDS_EQUAL_IF_VALID(AST, deco, program_id); in Function()
Dstruct_member.cc33 for (auto* deco : decorations) { in StructMember() local
34 TINT_ASSERT(AST, deco); in StructMember()
35 TINT_ASSERT_PROGRAM_IDS_EQUAL_IF_VALID(AST, deco, program_id); in StructMember()
Dstruct.cc37 for (auto* deco : decorations) { in Struct() local
38 TINT_ASSERT(AST, deco); in Struct()
39 TINT_ASSERT_PROGRAM_IDS_EQUAL_IF_VALID(AST, deco, program_id); in Struct()
Dvariable.cc55 for (auto* deco : decorations) { in BindingPoint() local
56 if (auto* g = deco->As<GroupDecoration>()) { in BindingPoint()
58 } else if (auto* b = deco->As<BindingDecoration>()) { in BindingPoint()
Darray.cc55 for (auto* deco : decorations) { in FriendlyName() local
56 if (auto* stride = deco->As<ast::StrideDecoration>()) { in FriendlyName()
/third_party/skia/third_party/externals/tint/src/writer/wgsl/
Dgenerator_impl.cc370 for (auto* deco : ary->decorations) { in EmitType() local
371 if (auto* stride = deco->As<ast::StrideDecoration>()) { in EmitType()
549 for (auto* deco : mem->decorations) { in EmitStructType() local
550 if (!deco->Is<ast::StructMemberOffsetDecoration>()) { in EmitStructType()
551 decorations_sanitized.emplace_back(deco); in EmitStructType()
624 for (auto* deco : decos) { in EmitDecorations() local
630 if (auto* workgroup = deco->As<ast::WorkgroupDecoration>()) { in EmitDecorations()
644 } else if (deco->Is<ast::StructBlockDecoration>()) { in EmitDecorations()
646 } else if (auto* stage = deco->As<ast::StageDecoration>()) { in EmitDecorations()
648 } else if (auto* binding = deco->As<ast::BindingDecoration>()) { in EmitDecorations()
[all …]
/third_party/skia/third_party/externals/tint/src/transform/
Dcanonicalize_entry_point_io.cc66 bool IsShaderIODecoration(const ast::Decoration* deco) { in IsShaderIODecoration() argument
67 return deco->IsAnyOf<ast::BuiltinDecoration, ast::InterpolateDecoration, in IsShaderIODecoration()
136 for (auto* deco : src) { in CloneShaderIOAttributes() local
137 if (IsShaderIODecoration(deco)) { in CloneShaderIOAttributes()
138 new_decorations.push_back(ctx.Clone(deco)); in CloneShaderIOAttributes()
251 for (auto* deco : param->Declaration()->decorations) { in ProcessNonStructParameter() local
252 if (IsShaderIODecoration(deco)) { in ProcessNonStructParameter()
253 ctx.Remove(param->Declaration()->decorations, deco); in ProcessNonStructParameter()
254 attributes.push_back(ctx.Clone(deco)); in ProcessNonStructParameter()
571 for (auto* deco : member->decorations) { in Run() local
[all …]
Dsingle_entry_point.cc79 if (auto* deco = ast::GetDecoration<ast::OverrideDecoration>( in Run() local
82 if (!deco->has_value) { in Run()
88 ctx.dst->Override(deco->source, global->ConstantId()); in Run()
89 ctx.Replace(deco, new_deco); in Run()
Ddecompose_strided_matrix.cc87 auto* deco = ast::GetDecoration<ast::StrideDecoration>( in GatherCustomStrideMatrixMembers() local
89 if (!deco) { in GatherCustomStrideMatrixMembers()
92 uint32_t stride = deco->stride; in GatherCustomStrideMatrixMembers()
/third_party/skia/third_party/externals/tint/src/reader/spirv/
Dparser_impl.cc240 bool IsPipelineDecoration(const Decoration& deco) { in IsPipelineDecoration() argument
241 if (deco.size() < 1) { in IsPipelineDecoration()
244 switch (deco[0]) { in IsPipelineDecoration()
1164 for (auto* deco : decos) { in ConvertType() local
1165 ast_member_decorations.emplace_back(deco); in ConvertType()
1391 for (const auto& deco : GetDecorationsFor(inst.result_id())) { in EmitScalarSpecConstants() local
1392 if ((deco.size() == 2) && (deco[0] == SpvDecorationSpecId)) { in EmitScalarSpecConstants()
1393 const uint32_t id = deco[1]; in EmitScalarSpecConstants()
1648 for (auto& deco : GetDecorationsFor(id)) { in ConvertDecorationsForVariable() local
1649 if (deco.empty()) { in ConvertDecorationsForVariable()
[all …]
/third_party/skia/third_party/externals/tint/src/sem/
Dfunction.cc50 for (auto* deco : var->Declaration()->decorations) { in TransitivelyReferencedLocationVariables() local
51 if (auto* location = deco->As<ast::LocationDecoration>()) { in TransitivelyReferencedLocationVariables()
97 for (auto* deco : var->Declaration()->decorations) { in TransitivelyReferencedBuiltinVariables() local
98 if (auto* builtin = deco->As<ast::BuiltinDecoration>()) { in TransitivelyReferencedBuiltinVariables()
/third_party/python/Lib/
Dquopri.py207 deco = False
211 if o == '-d': deco = True
212 if tabs and deco:
229 if deco:
/third_party/python/Lib/tkinter/test/
Dsupport.py89 def deco(test): function
97 return deco

12