Home
last modified time | relevance | path

Searched refs:decorations (Results 1 – 25 of 182) sorted by relevance

12345678

/third_party/skia/third_party/externals/tint/src/reader/spirv/
Dparser_impl_get_decorations_test.cc34 auto decorations = p->GetDecorationsFor(42); in TEST_F() local
35 EXPECT_TRUE(decorations.empty()); in TEST_F()
43 auto decorations = p->GetDecorationsFor(1); in TEST_F() local
44 EXPECT_TRUE(decorations.empty()); in TEST_F()
56 auto decorations = p->GetDecorationsFor(10); in TEST_F() local
57 EXPECT_THAT(decorations, in TEST_F()
71 auto decorations = p->GetDecorationsFor(5); in TEST_F() local
72 EXPECT_THAT(decorations, in TEST_F()
82 auto decorations = p->GetDecorationsForMember(42, 9); in TEST_F() local
83 EXPECT_TRUE(decorations.empty()); in TEST_F()
[all …]
/third_party/skia/third_party/externals/spirv-tools/test/opt/
Ddecoration_manager_test.cpp327 auto decorations = decoManager->GetDecorationsFor(1u, false); in TEST_F() local
329 EXPECT_TRUE(decorations.empty()); in TEST_F()
330 decorations = decoManager->GetDecorationsFor(3u, false); in TEST_F()
335 EXPECT_THAT(ToText(decorations), expected_decorations); in TEST_F()
368 auto decorations = decoManager->GetDecorationsFor(1u, false); in TEST_F() local
370 EXPECT_TRUE(decorations.empty()); in TEST_F()
371 decorations = decoManager->GetDecorationsFor(3u, false); in TEST_F()
376 EXPECT_THAT(ToText(decorations), expected_decorations); in TEST_F()
409 auto decorations = decoManager->GetDecorationsFor(2u, false); in TEST_F() local
411 EXPECT_TRUE(decorations.empty()); in TEST_F()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/
Ddecoration_manager_test.cpp327 auto decorations = decoManager->GetDecorationsFor(1u, false); in TEST_F() local
329 EXPECT_TRUE(decorations.empty()); in TEST_F()
330 decorations = decoManager->GetDecorationsFor(3u, false); in TEST_F()
335 EXPECT_THAT(ToText(decorations), expected_decorations); in TEST_F()
368 auto decorations = decoManager->GetDecorationsFor(1u, false); in TEST_F() local
370 EXPECT_TRUE(decorations.empty()); in TEST_F()
371 decorations = decoManager->GetDecorationsFor(3u, false); in TEST_F()
376 EXPECT_THAT(ToText(decorations), expected_decorations); in TEST_F()
409 auto decorations = decoManager->GetDecorationsFor(2u, false); in TEST_F() local
411 EXPECT_TRUE(decorations.empty()); in TEST_F()
[all …]
/third_party/spirv-tools/test/opt/
Ddecoration_manager_test.cpp327 auto decorations = decoManager->GetDecorationsFor(1u, false); in TEST_F() local
329 EXPECT_TRUE(decorations.empty()); in TEST_F()
330 decorations = decoManager->GetDecorationsFor(3u, false); in TEST_F()
335 EXPECT_THAT(ToText(decorations), expected_decorations); in TEST_F()
368 auto decorations = decoManager->GetDecorationsFor(1u, false); in TEST_F() local
370 EXPECT_TRUE(decorations.empty()); in TEST_F()
371 decorations = decoManager->GetDecorationsFor(3u, false); in TEST_F()
376 EXPECT_THAT(ToText(decorations), expected_decorations); in TEST_F()
409 auto decorations = decoManager->GetDecorationsFor(2u, false); in TEST_F() local
411 EXPECT_TRUE(decorations.empty()); in TEST_F()
[all …]
/third_party/skia/third_party/externals/tint/src/reader/wgsl/
Dparser_impl_function_decl_test.cc68 auto& decorations = f->decorations; in TEST_F() local
69 ASSERT_EQ(decorations.size(), 1u); in TEST_F()
70 ASSERT_TRUE(decorations[0]->Is<ast::WorkgroupDecoration>()); in TEST_F()
72 auto values = decorations[0]->As<ast::WorkgroupDecoration>()->Values(); in TEST_F()
107 auto& decorations = f->decorations; in TEST_F() local
108 ASSERT_EQ(decorations.size(), 2u); in TEST_F()
110 ASSERT_TRUE(decorations[0]->Is<ast::WorkgroupDecoration>()); in TEST_F()
111 auto values = decorations[0]->As<ast::WorkgroupDecoration>()->Values(); in TEST_F()
122 ASSERT_TRUE(decorations[1]->Is<ast::StageDecoration>()); in TEST_F()
123 EXPECT_EQ(decorations[1]->As<ast::StageDecoration>()->stage, in TEST_F()
[all …]
Dparser_impl_struct_member_test.cc39 EXPECT_EQ(m->decorations.size(), 0u); in TEST_F()
62 EXPECT_EQ(m->decorations.size(), 1u); in TEST_F()
63 EXPECT_TRUE(m->decorations[0]->Is<ast::StructMemberAlignDecoration>()); in TEST_F()
64 EXPECT_EQ(m->decorations[0]->As<ast::StructMemberAlignDecoration>()->align, in TEST_F()
88 EXPECT_EQ(m->decorations.size(), 1u); in TEST_F()
89 EXPECT_TRUE(m->decorations[0]->Is<ast::StructMemberSizeDecoration>()); in TEST_F()
90 EXPECT_EQ(m->decorations[0]->As<ast::StructMemberSizeDecoration>()->size, 2u); in TEST_F()
113 EXPECT_EQ(m->decorations.size(), 1u); in TEST_F()
114 EXPECT_TRUE(m->decorations[0]->Is<ast::StructMemberSizeDecoration>()); in TEST_F()
115 EXPECT_EQ(m->decorations[0]->As<ast::StructMemberSizeDecoration>()->size, 2u); in TEST_F()
[all …]
Dparser_impl_global_variable_decl_test.cc92 auto& decorations = e->decorations; in TEST_F() local
93 ASSERT_EQ(decorations.size(), 2u); in TEST_F()
94 ASSERT_TRUE(decorations[0]->Is<ast::BindingDecoration>()); in TEST_F()
95 ASSERT_TRUE(decorations[1]->Is<ast::GroupDecoration>()); in TEST_F()
122 auto& decorations = e->decorations; in TEST_F() local
123 ASSERT_EQ(decorations.size(), 2u); in TEST_F()
124 ASSERT_TRUE(decorations[0]->Is<ast::BindingDecoration>()); in TEST_F()
125 ASSERT_TRUE(decorations[1]->Is<ast::GroupDecoration>()); in TEST_F()
/third_party/skia/third_party/externals/tint/tools/src/cmd/intrinsic-gen/parser/
Dparser.go46 var decorations ast.Decorations
54 decorations = append(decorations, p.decorations()...)
56 if len(decorations) > 0 {
57 p.err = fmt.Errorf("%v unexpected decoration", decorations[0].Source)
61 if len(decorations) > 0 {
62 p.err = fmt.Errorf("%v unexpected decoration", decorations[0].Source)
66 out.Types = append(out.Types, p.typeDecl(decorations))
67 decorations = nil
69 out.Functions = append(out.Functions, p.functionDecl(decorations))
70 decorations = nil
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmCrossStageInterfaceTests.cpp659 vector<Decorations> decorations; in initPrograms() local
664 decorations.push_back(Decorations("", in initPrograms()
673 decorations.push_back(Decorations(//Fragment in initPrograms()
682 decorations.push_back(Decorations(//Fragment in initPrograms()
699 decorations.push_back(Decorations("", in initPrograms()
709 decorations.push_back(Decorations(//Fragment in initPrograms()
718 decorations.push_back(Decorations(//Fragment in initPrograms()
735 decorations.push_back(Decorations(//Fragment in initPrograms()
767 for (deUint32 ndx = 0; ndx < decorations.size(); ++ndx) in initPrograms()
810 +decorations[ndx].vertex+ in initPrograms()
[all …]
/third_party/skia/third_party/externals/tint/src/inspector/
Dtest_inspector_builder.h49 void MakeEmptyBodyFunction(std::string name, ast::DecorationList decorations);
57 ast::DecorationList decorations);
83 ast::DecorationList decorations);
98 ast::DecorationList decorations);
145 ast::DecorationList decorations);
184 ast::DecorationList decorations);
281 ast::DecorationList decorations);
299 ast::DecorationList decorations);
318 ast::DecorationList decorations);
360 ast::DecorationList decorations);
Dtest_inspector_builder.cc32 ast::DecorationList decorations) { in MakeEmptyBodyFunction() argument
34 decorations); in MakeEmptyBodyFunction()
39 ast::DecorationList decorations) { in MakeCallerBodyFunction() argument
47 Func(caller, ast::VariableList(), ty.void_(), body, decorations); in MakeCallerBodyFunction()
67 ast::DecorationList decorations) { in MakePlainGlobalReferenceBodyFunction() argument
73 return Func(func, ast::VariableList(), ty.void_(), stmts, decorations); in MakePlainGlobalReferenceBodyFunction()
116 ast::DecorationList decorations) { in MakeStructMember() argument
117 return Member(StructMemberName(index, type), type, std::move(decorations)); in MakeStructMember()
233 ast::DecorationList decorations) { in MakeSamplerReferenceBodyFunction() argument
243 return Func(func_name, ast::VariableList(), ty.void_(), stmts, decorations); in MakeSamplerReferenceBodyFunction()
[all …]
Dinspector.cc105 const ast::DecorationList& decorations) { in CalculateInterpolationData() argument
107 ast::GetDecoration<ast::InterpolateDecoration>(decorations); in CalculateInterpolationData()
160 param->Type(), param->Declaration()->decorations, in GetEntryPoints()
165 param->Declaration()->decorations); in GetEntryPoints()
168 param->Declaration()->decorations); in GetEntryPoints()
171 param->Declaration()->decorations); in GetEntryPoints()
174 param->Declaration()->decorations); in GetEntryPoints()
177 param->Declaration()->decorations); in GetEntryPoints()
217 global->Declaration()->decorations); in GetEntryPoints()
591 const ast::DecorationList& decorations, in AddEntryPointInOutVariables() argument
[all …]
/third_party/skia/third_party/externals/tint/src/ast/
Ddecoration.h47 bool HasDecoration(const DecorationList& decorations) { in HasDecoration() argument
48 for (auto* deco : decorations) { in HasDecoration()
59 const T* GetDecoration(const DecorationList& decorations) { in GetDecoration() argument
60 for (auto* deco : decorations) { in GetDecoration()
Dstruct.cc32 : Base(pid, src, n), members(std::move(m)), decorations(std::move(decos)) { in Struct()
37 for (auto* deco : decorations) { in Struct()
48 return HasDecoration<StructBlockDecoration>(decorations); in IsBlockDecorated()
56 auto decos = ctx->Clone(decorations); in Clone()
Dstruct_test.cc43 EXPECT_TRUE(s->decorations.empty()); in TEST_F()
59 ASSERT_EQ(s->decorations.size(), 1u); in TEST_F()
60 EXPECT_TRUE(s->decorations[0]->Is<StructBlockDecoration>()); in TEST_F()
75 ASSERT_EQ(s->decorations.size(), 1u); in TEST_F()
76 EXPECT_TRUE(s->decorations[0]->Is<StructBlockDecoration>()); in TEST_F()
Dvariable_test.cc102 auto& decorations = var->decorations; in TEST_F() local
103 EXPECT_TRUE(ast::HasDecoration<ast::LocationDecoration>(decorations)); in TEST_F()
104 EXPECT_TRUE(ast::HasDecoration<ast::BuiltinDecoration>(decorations)); in TEST_F()
105 EXPECT_TRUE(ast::HasDecoration<ast::OverrideDecoration>(decorations)); in TEST_F()
107 auto* location = ast::GetDecoration<ast::LocationDecoration>(decorations); in TEST_F()
Dfunction.cc39 decorations(std::move(decos)), in Function()
49 for (auto* deco : decorations) { in Function()
62 if (auto* stage = GetDecoration<StageDecoration>(decorations)) { in PipelineStage()
75 auto decos = ctx->Clone(decorations); in Clone()
Dstruct_member.cc29 : Base(pid, src), symbol(sym), type(ty), decorations(std::move(decos)) { in StructMember()
33 for (auto* deco : decorations) { in StructMember()
48 auto decos = ctx->Clone(decorations); in Clone()
Darray.cc47 : Base(pid, src), type(subtype), count(cnt), decorations(decos) {} in Array()
55 for (auto* deco : decorations) { in FriendlyName()
73 auto decos = ctx->Clone(decorations); in Clone()
/third_party/skia/third_party/externals/spirv-tools/source/val/
Dvalidate_function.cpp162 const auto& decorations = _.id_decorations(inst->id()); in ValidateFunctionParameter() local
165 decorations.begin(), decorations.end(), [](const Decoration& d) { in ValidateFunctionParameter()
170 decorations.begin(), decorations.end(), [](const Decoration& d) { in ValidateFunctionParameter()
194 const auto& decorations = _.id_decorations(inst->id()); in ValidateFunctionParameter() local
197 decorations.begin(), decorations.end(), [](const Decoration& d) { in ValidateFunctionParameter()
202 decorations.begin(), decorations.end(), [](const Decoration& d) { in ValidateFunctionParameter()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_function.cpp162 const auto& decorations = _.id_decorations(inst->id()); in ValidateFunctionParameter() local
165 decorations.begin(), decorations.end(), [](const Decoration& d) { in ValidateFunctionParameter()
170 decorations.begin(), decorations.end(), [](const Decoration& d) { in ValidateFunctionParameter()
194 const auto& decorations = _.id_decorations(inst->id()); in ValidateFunctionParameter() local
197 decorations.begin(), decorations.end(), [](const Decoration& d) { in ValidateFunctionParameter()
202 decorations.begin(), decorations.end(), [](const Decoration& d) { in ValidateFunctionParameter()
/third_party/spirv-tools/source/val/
Dvalidate_function.cpp162 const auto& decorations = _.id_decorations(inst->id()); in ValidateFunctionParameter() local
165 decorations.begin(), decorations.end(), [](const Decoration& d) { in ValidateFunctionParameter()
170 decorations.begin(), decorations.end(), [](const Decoration& d) { in ValidateFunctionParameter()
194 const auto& decorations = _.id_decorations(inst->id()); in ValidateFunctionParameter() local
197 decorations.begin(), decorations.end(), [](const Decoration& d) { in ValidateFunctionParameter()
202 decorations.begin(), decorations.end(), [](const Decoration& d) { in ValidateFunctionParameter()
/third_party/skia/experimental/sktext/editor/
DTexts.cpp24 std::vector<TextIndex> DynamicText::getDecorationChunks(SkSpan<DecoratedBlock> decorations) const { in getDecorationChunks()
27 for (auto& decoration : decorations) { in getDecorationChunks()
39 auto decorations = mergeSelectionIntoDecorations(); in paint() local
40 …to chunks = this->getDecorationChunks(SkSpan<DecoratedBlock>(decorations.data(), decorations.size(… in paint()
/third_party/glslang/SPIRV/
DSpvPostProcess.cpp267 std::for_each(decorations.begin(), decorations.end(), function); in postProcess()
280 std::for_each(decorations.begin(), decorations.end(), function); in postProcess()
376 decorations.erase(std::remove_if(decorations.begin(), decorations.end(), in postProcessCFG()
381 decorations.end()); in postProcessCFG()
431 std::for_each(decorations.begin(), decorations.end(), function); in postProcessFeatures()
/third_party/skia/third_party/externals/tint/src/transform/
Dcanonicalize_entry_point_io.cc44 auto* a_loc = ast::GetDecoration<ast::LocationDecoration>(a->decorations); in StructMemberComparator()
45 auto* b_loc = ast::GetDecoration<ast::LocationDecoration>(b->decorations); in StructMemberComparator()
46 auto* a_blt = ast::GetDecoration<ast::BuiltinDecoration>(a->decorations); in StructMemberComparator()
47 auto* b_blt = ast::GetDecoration<ast::BuiltinDecoration>(b->decorations); in StructMemberComparator()
251 for (auto* deco : param->Declaration()->decorations) { in ProcessNonStructParameter()
253 ctx.Remove(param->Declaration()->decorations, deco); in ProcessNonStructParameter()
282 auto attributes = CloneShaderIOAttributes(member_ast->decorations); in ProcessStructParameter()
308 auto attributes = CloneShaderIOAttributes(member_ast->decorations); in ProcessReturnType()
544 ctx.dst->Block(wrapper_body), ctx.Clone(func_ast->decorations), in Process()
571 for (auto* deco : member->decorations) { in Run()
[all …]

12345678