Home
last modified time | relevance | path

Searched refs:decorations (Results 1 - 25 of 126) sorted by relevance

123456

/third_party/skia/third_party/externals/tint/src/reader/spirv/
H A 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 in TEST_F()
91 auto decorations = p->GetDecorationsFor(1); TEST_F() local
104 auto decorations = p->GetDecorationsForMember(10, 0); TEST_F() local
117 auto decorations = p->GetDecorationsForMember(10, 0); TEST_F() local
135 auto decorations = p->GetDecorationsForMember(10, 1); TEST_F() local
[all...]
/third_party/skia/third_party/externals/spirv-tools/test/opt/
H A 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 in TEST_F()
450 auto decorations = decoManager->GetDecorationsFor(1u, false); TEST_F() local
492 auto decorations = decoManager->GetDecorationsFor(1u, false); TEST_F() local
544 auto decorations = decoManager->GetDecorationsFor(1u, false); TEST_F() local
588 auto decorations = decoManager->GetDecorationsFor(1u, false); TEST_F() local
612 auto decorations = decoManager->GetDecorationsFor(1u, false); TEST_F() local
643 auto decorations = decoManager->GetDecorationsFor(5u, false); TEST_F() local
704 auto decorations = decoManager->GetDecorationsFor(5u, false); TEST_F() local
762 auto decorations = decoManager->GetDecorationsFor(8u, false); TEST_F() local
821 auto decorations = decoManager->GetDecorationsFor(9u, false); TEST_F() local
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/
H A 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 in TEST_F()
450 auto decorations = decoManager->GetDecorationsFor(1u, false); TEST_F() local
492 auto decorations = decoManager->GetDecorationsFor(1u, false); TEST_F() local
544 auto decorations = decoManager->GetDecorationsFor(1u, false); TEST_F() local
588 auto decorations = decoManager->GetDecorationsFor(1u, false); TEST_F() local
612 auto decorations = decoManager->GetDecorationsFor(1u, false); TEST_F() local
643 auto decorations = decoManager->GetDecorationsFor(5u, false); TEST_F() local
704 auto decorations = decoManager->GetDecorationsFor(5u, false); TEST_F() local
762 auto decorations = decoManager->GetDecorationsFor(8u, false); TEST_F() local
821 auto decorations = decoManager->GetDecorationsFor(9u, false); TEST_F() local
[all...]
/third_party/spirv-tools/test/opt/
H A Ddecoration_manager_test.cpp340 auto decorations = decoManager->GetDecorationsFor(1u, false); in TEST_F() local
342 EXPECT_TRUE(decorations.empty()); in TEST_F()
343 decorations = decoManager->GetDecorationsFor(3u, false); in TEST_F()
348 EXPECT_THAT(ToText(decorations), expected_decorations); in TEST_F()
381 auto decorations = decoManager->GetDecorationsFor(1u, false); in TEST_F() local
383 EXPECT_TRUE(decorations.empty()); in TEST_F()
384 decorations = decoManager->GetDecorationsFor(3u, false); in TEST_F()
389 EXPECT_THAT(ToText(decorations), expected_decorations); in TEST_F()
422 auto decorations = decoManager->GetDecorationsFor(2u, false); in TEST_F() local
424 EXPECT_TRUE(decorations in TEST_F()
463 auto decorations = decoManager->GetDecorationsFor(1u, false); TEST_F() local
505 auto decorations = decoManager->GetDecorationsFor(1u, false); TEST_F() local
558 auto decorations = decoManager->GetDecorationsFor(1u, false); TEST_F() local
602 auto decorations = decoManager->GetDecorationsFor(1u, false); TEST_F() local
626 auto decorations = decoManager->GetDecorationsFor(1u, false); TEST_F() local
657 auto decorations = decoManager->GetDecorationsFor(5u, false); TEST_F() local
718 auto decorations = decoManager->GetDecorationsFor(5u, false); TEST_F() local
776 auto decorations = decoManager->GetDecorationsFor(8u, false); TEST_F() local
835 auto decorations = decoManager->GetDecorationsFor(9u, false); TEST_F() local
[all...]
/third_party/skia/third_party/externals/tint/src/reader/wgsl/
H A 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[ in TEST_F()
[all...]
H A 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[ in TEST_F()
136 auto decorations = p->decoration_list(); TEST_F() local
192 auto& decorations = f->decorations; TEST_F() local
[all...]
H A 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[ in TEST_F()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/
H A DvktSpvAsmCrossStageInterfaceTests.cpp665 vector<Decorations> decorations; in initPrograms() local
670 decorations.push_back(Decorations("", in initPrograms()
678 decorations.push_back(Decorations(//Fragment in initPrograms()
687 decorations.push_back(Decorations(//Fragment in initPrograms()
703 decorations.push_back(Decorations("", in initPrograms()
712 decorations.push_back(Decorations(//Fragment in initPrograms()
721 decorations.push_back(Decorations(//Fragment in initPrograms()
737 decorations.push_back(Decorations(//Fragment in initPrograms()
769 for (deUint32 ndx = 0; ndx < decorations.size(); ++ndx) in initPrograms()
812 +decorations[nd in initPrograms()
1784 vector<Decorations> decorations; initPrograms() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/spirv_assembly/
H A DvktSpvAsmCrossStageInterfaceTests.cpp665 vector<Decorations> decorations; in initPrograms() local
670 decorations.push_back(Decorations("", in initPrograms()
678 decorations.push_back(Decorations(//Fragment in initPrograms()
687 decorations.push_back(Decorations(//Fragment in initPrograms()
703 decorations.push_back(Decorations("", in initPrograms()
712 decorations.push_back(Decorations(//Fragment in initPrograms()
721 decorations.push_back(Decorations(//Fragment in initPrograms()
737 decorations.push_back(Decorations(//Fragment in initPrograms()
769 for (deUint32 ndx = 0; ndx < decorations.size(); ++ndx) in initPrograms()
812 +decorations[nd in initPrograms()
1784 vector<Decorations> decorations; initPrograms() local
[all...]
/third_party/skia/third_party/externals/tint/src/inspector/
H A Dtest_inspector_builder.cc32 ast::DecorationList decorations) { in MakeEmptyBodyFunction()
34 decorations); in MakeEmptyBodyFunction()
39 ast::DecorationList decorations) { in MakeCallerBodyFunction()
47 Func(caller, ast::VariableList(), ty.void_(), body, decorations); in MakeCallerBodyFunction()
67 ast::DecorationList decorations) { in MakePlainGlobalReferenceBodyFunction()
73 return Func(func, ast::VariableList(), ty.void_(), stmts, decorations); in MakePlainGlobalReferenceBodyFunction()
116 ast::DecorationList decorations) { in MakeStructMember()
117 return Member(StructMemberName(index, type), type, std::move(decorations)); in MakeStructMember()
233 ast::DecorationList decorations) { in MakeSamplerReferenceBodyFunction()
243 return Func(func_name, ast::VariableList(), ty.void_(), stmts, decorations); in MakeSamplerReferenceBodyFunction()
31 MakeEmptyBodyFunction(std::string name, ast::DecorationList decorations) MakeEmptyBodyFunction() argument
37 MakeCallerBodyFunction(std::string caller, std::vector<std::string> callees, ast::DecorationList decorations) MakeCallerBodyFunction() argument
63 MakePlainGlobalReferenceBodyFunction( std::string func, std::string var, const ast::Type* type, ast::DecorationList decorations) MakePlainGlobalReferenceBodyFunction() argument
113 MakeStructMember( size_t index, const ast::Type* type, ast::DecorationList decorations) MakeStructMember() argument
227 MakeSamplerReferenceBodyFunction( const std::string& func_name, const std::string& texture_name, const std::string& sampler_name, const std::string& coords_name, const ast::Type* base_type, ast::DecorationList decorations) MakeSamplerReferenceBodyFunction() argument
246 MakeSamplerReferenceBodyFunction( const std::string& func_name, const std::string& texture_name, const std::string& sampler_name, const std::string& coords_name, const std::string& array_index, const ast::Type* base_type, ast::DecorationList decorations) MakeSamplerReferenceBodyFunction() argument
269 MakeComparisonSamplerReferenceBodyFunction( const std::string& func_name, const std::string& texture_name, const std::string& sampler_name, const std::string& coords_name, const std::string& depth_name, const ast::Type* base_type, ast::DecorationList decorations) MakeComparisonSamplerReferenceBodyFunction() argument
339 MakeStorageTextureBodyFunction( const std::string& func_name, const std::string& st_name, const ast::Type* dim_type, ast::DecorationList decorations) MakeStorageTextureBodyFunction() argument
[all...]
H A Dtest_inspector_builder.h48 /// @param decorations the function decorations
49 void MakeEmptyBodyFunction(std::string name, ast::DecorationList decorations);
54 /// @param decorations the function decorations
57 ast::DecorationList decorations);
79 /// @param decorations the function decorations
83 ast::DecorationList decorations);
92 /// @param decorations th
[all...]
H A Dinspector.cc105 const ast::DecorationList& decorations) { in CalculateInterpolationData()
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()
103 CalculateInterpolationData( const sem::Type* type, const ast::DecorationList& decorations) CalculateInterpolationData() argument
588 AddEntryPointInOutVariables( std::string name, const sem::Type* type, const ast::DecorationList& decorations, std::vector<StageVariable>& variables) const AddEntryPointInOutVariables() argument
[all...]
/third_party/skia/third_party/externals/tint/src/ast/
H A Ddecoration.h26 /// The base class for all decorations
41 /// A list of decorations
44 /// @param decorations the list of decorations to search
45 /// @returns true if `decorations` includes a decoration of type `T`
47 bool HasDecoration(const DecorationList& decorations) { in HasDecoration() argument
48 for (auto* deco : decorations) { in HasDecoration()
56 /// @param decorations the list of decorations to search
57 /// @returns a pointer to `T` from `decorations` i
59 GetDecoration(const DecorationList& decorations) GetDecoration() argument
[all...]
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
/third_party/skia/third_party/externals/tint/tools/src/cmd/intrinsic-gen/parser/
H A Dparser.go46 var decorations ast.Decorations var
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
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/val/
H A Dvalidate_function.cpp27 // types logically match and the decorations that apply to |b| are a subset
28 // of the decorations that apply to |a|.
162 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 in ValidateFunctionParameter()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
H A Dvalidate_function.cpp27 // types logically match and the decorations that apply to |b| are a subset
28 // of the decorations that apply to |a|.
162 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 in ValidateFunctionParameter()
[all...]
/third_party/skia/experimental/sktext/editor/
H A 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 auto chunks = this->getDecorationChunks(SkSpan<DecoratedBlock>(decorations.data(), decorations.size())); in paint()
/third_party/glslang/SPIRV/
H A DSpvPostProcess.cpp247 // and this function computes the rest from the SPIR-V Offset decorations. in postProcess()
263 // Offset/ArrayStride/MatrixStride decorations, and bitwise OR them all in postProcess()
281 std::for_each(decorations.begin(), decorations.end(), function); in postProcess()
294 std::for_each(decorations.begin(), decorations.end(), function); in postProcess()
364 ++ii; // Keep potential decorations on the label. in postProcessCFG()
388 // Remove unneeded decorations, for unreachable instructions in postProcessCFG()
389 decorations.erase(std::remove_if(decorations in postProcessCFG()
[all...]
/third_party/spirv-tools/source/val/
H A Dvalidate_function.cpp28 // types logically match and the decorations that apply to |b| are a subset
29 // of the decorations that apply to |a|.
164 const auto& decorations = _.id_decorations(inst->id()); in ValidateFunctionParameter() local
167 decorations.begin(), decorations.end(), [](const Decoration& d) { in ValidateFunctionParameter()
172 decorations.begin(), decorations.end(), [](const Decoration& d) { in ValidateFunctionParameter()
196 const auto& decorations = _.id_decorations(inst->id()); in ValidateFunctionParameter() local
199 decorations.begin(), decorations in ValidateFunctionParameter()
[all...]
/third_party/skia/third_party/externals/tint/src/resolver/
H A Dresolver_validation.cc265 // TODO(amaiorano): Output struct and member decorations so that this output in ValidateStorageClassLayout()
450 if (!ValidateNoDuplicateDecorations(decl->decorations)) { in ValidateGlobalVariable()
454 for (auto* deco : decl->decorations) { in ValidateGlobalVariable()
466 it->second->Declaration()->decorations) in ValidateGlobalVariable()
507 "decorations", in ValidateGlobalVariable()
519 "decorations", in ValidateGlobalVariable()
716 IsValidationEnabled(decl->decorations, in ValidateVariable()
737 if (IsValidationEnabled(decl->decorations, in ValidateVariable()
755 for (auto* deco : decl->decorations) { in ValidateFunctionParameter()
766 decl->decorations, in ValidateFunctionParameter()
2398 ValidateNoDuplicateDecorations( const ast::DecorationList& decorations) ValidateNoDuplicateDecorations() argument
2412 IsValidationDisabled(const ast::DecorationList& decorations, ast::DisabledValidation validation) const IsValidationDisabled() argument
2424 IsValidationEnabled(const ast::DecorationList& decorations, ast::DisabledValidation validation) const IsValidationEnabled() argument
[all...]

Completed in 16 milliseconds

123456