Home
last modified time | relevance | path

Searched refs:BindingPoint (Results 1 – 25 of 43) sorted by relevance

12

/third_party/skia/third_party/externals/tint/src/ast/
Dvariable_test.cc112 TEST_F(VariableTest, BindingPoint) { in TEST_F() argument
118 EXPECT_TRUE(var->BindingPoint()); in TEST_F()
119 ASSERT_NE(var->BindingPoint().binding, nullptr); in TEST_F()
120 ASSERT_NE(var->BindingPoint().group, nullptr); in TEST_F()
121 EXPECT_EQ(var->BindingPoint().binding->value, 2u); in TEST_F()
122 EXPECT_EQ(var->BindingPoint().group->value, 1u); in TEST_F()
128 EXPECT_FALSE(var->BindingPoint()); in TEST_F()
129 EXPECT_EQ(var->BindingPoint().group, nullptr); in TEST_F()
130 EXPECT_EQ(var->BindingPoint().binding, nullptr); in TEST_F()
138 EXPECT_FALSE(var->BindingPoint()); in TEST_F()
[all …]
Dvariable.h127 VariableBindingPoint BindingPoint() const;
/third_party/skia/third_party/externals/tint/src/transform/
Darray_length_from_uniform_test.cc92 cfg.bindpoint_to_size_index.emplace(sem::BindingPoint{0, 0}, 0); in TEST_F()
145 cfg.bindpoint_to_size_index.emplace(sem::BindingPoint{0, 0}, 0); in TEST_F()
262 cfg.bindpoint_to_size_index.emplace(sem::BindingPoint{0, 2u}, 0); in TEST_F()
263 cfg.bindpoint_to_size_index.emplace(sem::BindingPoint{1u, 2u}, 1); in TEST_F()
264 cfg.bindpoint_to_size_index.emplace(sem::BindingPoint{2u, 2u}, 2); in TEST_F()
265 cfg.bindpoint_to_size_index.emplace(sem::BindingPoint{3u, 2u}, 3); in TEST_F()
266 cfg.bindpoint_to_size_index.emplace(sem::BindingPoint{4u, 2u}, 4); in TEST_F()
377 cfg.bindpoint_to_size_index.emplace(sem::BindingPoint{0, 2u}, 0); in TEST_F()
378 cfg.bindpoint_to_size_index.emplace(sem::BindingPoint{1u, 2u}, 1); in TEST_F()
379 cfg.bindpoint_to_size_index.emplace(sem::BindingPoint{2u, 2u}, 2); in TEST_F()
[all …]
Dbinding_remapper.cc56 std::unordered_set<sem::BindingPoint> add_collision_deco; in Run()
66 std::unordered_map<sem::BindingPoint, int> binding_point_counts; in Run()
68 if (auto binding_point = var->Declaration()->BindingPoint()) { in Run()
69 BindingPoint from{binding_point.group->value, in Run()
74 BindingPoint to = bp_it->second; in Run()
90 if (auto binding_point = var->BindingPoint()) { in Run()
92 BindingPoint from{binding_point.group->value, in Run()
96 BindingPoint bp = from; in Run()
103 BindingPoint to = bp_it->second; in Run()
Dmultiplanar_external_texture.h30 using BindingPoint = sem::BindingPoint; variable
37 BindingPoint plane_1;
40 BindingPoint params;
57 using BindingsMap = std::unordered_map<BindingPoint, BindingPoints>;
Dbinding_remapper.h28 using BindingPoint = sem::BindingPoint; variable
35 using BindingPoints = std::unordered_map<BindingPoint, BindingPoint>;
38 using AccessControls = std::unordered_map<BindingPoint, ast::Access>;
Dfirst_index_offset.h63 struct BindingPoint : public Castable<BindingPoint, transform::Data> { struct
65 BindingPoint();
70 BindingPoint(uint32_t b, uint32_t g);
73 ~BindingPoint() override;
Dfirst_index_offset.cc29 TINT_INSTANTIATE_TYPEINFO(tint::transform::FirstIndexOffset::BindingPoint);
42 FirstIndexOffset::BindingPoint::BindingPoint() = default;
43 FirstIndexOffset::BindingPoint::BindingPoint(uint32_t b, uint32_t g) in BindingPoint() function in tint::transform::FirstIndexOffset::BindingPoint
45 FirstIndexOffset::BindingPoint::~BindingPoint() = default;
67 if (auto* binding_point = inputs.Get<BindingPoint>()) { in Run()
Dfirst_index_offset_test.cc34 config.Add<FirstIndexOffset::BindingPoint>(0, 0); in TEST_F()
81 config.Add<FirstIndexOffset::BindingPoint>(1, 2); in TEST_F()
128 config.Add<FirstIndexOffset::BindingPoint>(1, 7); in TEST_F()
188 config.Add<FirstIndexOffset::BindingPoint>(1, 2); in TEST_F()
243 config.Add<FirstIndexOffset::BindingPoint>(1, 2); in TEST_F()
315 config.Add<FirstIndexOffset::BindingPoint>(1, 2); in TEST_F()
Dnum_workgroups_from_uniform_test.cc91 data.Add<NumWorkgroupsFromUniform::Config>(sem::BindingPoint{0, 30u}); in TEST_F()
138 data.Add<NumWorkgroupsFromUniform::Config>(sem::BindingPoint{0, 30u}); in TEST_F()
196 data.Add<NumWorkgroupsFromUniform::Config>(sem::BindingPoint{0, 30u}); in TEST_F()
298 data.Add<NumWorkgroupsFromUniform::Config>(sem::BindingPoint{0, 30u}); in TEST_F()
341 data.Add<NumWorkgroupsFromUniform::Config>(sem::BindingPoint{0, 30u}); in TEST_F()
Darray_length_from_uniform.h65 explicit Config(sem::BindingPoint ubo_bp);
78 sem::BindingPoint ubo_binding;
81 std::unordered_map<sem::BindingPoint, uint32_t> bindpoint_to_size_index;
Dnum_workgroups_from_uniform.h55 explicit Config(sem::BindingPoint ubo_bp);
64 sem::BindingPoint ubo_binding;
Darray_length_from_uniform.cc124 auto binding = var->BindingPoint(); in Run()
167 auto binding = var->BindingPoint(); in Run()
206 ArrayLengthFromUniform::Config::Config(sem::BindingPoint ubo_bp) in Config()
/third_party/skia/third_party/externals/tint/src/sem/
Dbinding_point.h28 struct BindingPoint { struct
37 inline bool operator==(const BindingPoint& rhs) const {
44 inline bool operator!=(const BindingPoint& rhs) const {
58 class hash<tint::sem::BindingPoint> {
63 const tint::sem::BindingPoint& binding_point) const { in operator()
Dfunction.cc69 if (auto binding_point = var->Declaration()->BindingPoint()) { in TransitivelyReferencedUniformVariables()
85 if (auto binding_point = var->Declaration()->BindingPoint()) { in TransitivelyReferencedStorageBufferVariables()
134 if (auto binding_point = var->Declaration()->BindingPoint()) { in TransitivelyReferencedVariablesOfType()
162 if (auto binding_point = var->Declaration()->BindingPoint()) { in TransitivelyReferencedSamplerVariablesImpl()
188 if (auto binding_point = var->Declaration()->BindingPoint()) { in TransitivelyReferencedSampledTextureVariablesImpl()
Dvariable.h151 sem::BindingPoint binding_point = {});
157 sem::BindingPoint BindingPoint() const { return binding_point_; } in BindingPoint() function
177 const sem::BindingPoint binding_point_;
/third_party/vk-gl-cts/framework/opengl/
DgluDrawUtil.hpp93 struct BindingPoint struct
107 BindingPoint (void) : type(BPTYPE_LAST), location (0) {} in BindingPoint() function
108 explicit BindingPoint (int location_) : type(BPTYPE_LOCATION), location(location_) {} in BindingPoint() function
109 …explicit BindingPoint (const std::string& name_, int location_ = 0) : type(BPTYPE_NAME), name(name… in BindingPoint() function
145 BindingPoint binding;
148 VertexArrayBinding (const BindingPoint& binding_, const VertexArrayPointer& pointer_) in VertexArrayBinding()
248 …return VertexArrayBinding(BindingPoint(name, offset), VertexArrayPointer(TYPE, CONVERT, numCompone…
256 …return VertexArrayBinding(BindingPoint(location), VertexArrayPointer(TYPE, CONVERT, numComponents,…
DgluDrawUtil.cpp224 const BindingPoint& binding = cur->binding; in namedBindingsToProgramLocations()
225 if (binding.type == BindingPoint::BPTYPE_NAME) in namedBindingsToProgramLocations()
232 *out = VertexArrayBinding(BindingPoint(location + binding.location), cur->pointer); in namedBindingsToProgramLocations()
259 const BindingPoint& binding = cur->binding; in areVertexArrayLocationsValid()
261 if (binding.type != BindingPoint::BPTYPE_LOCATION) in areVertexArrayLocationsValid()
282 DE_ASSERT(va.binding.type == BindingPoint::BPTYPE_LOCATION); in appendAttributeNonStrided()
391 DE_ASSERT(vertexArray.binding.type == BindingPoint::BPTYPE_LOCATION); in getUserPointerDescriptor()
436 DE_ASSERT(vaIter->binding.type == BindingPoint::BPTYPE_LOCATION); in disableVertexArrays()
/third_party/skia/third_party/externals/tint/src/writer/
Darray_length_from_uniform_options.h43 sem::BindingPoint ubo_binding;
46 std::unordered_map<sem::BindingPoint, uint32_t> bindpoint_to_size_index;
/third_party/skia/third_party/externals/tint/src/inspector/
Dsampler_texture_pair.h29 sem::BindingPoint sampler_binding_point;
31 sem::BindingPoint texture_binding_point;
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DShaderModuleVk.cpp129 using BindingPoint = tint::transform::BindingPoint; in GetTransformedModuleHandle() typedef
141 BindingPoint srcBindingPoint{static_cast<uint32_t>(group), in GetTransformedModuleHandle()
144 BindingPoint dstBindingPoint{static_cast<uint32_t>(group), in GetTransformedModuleHandle()
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DShaderModuleD3D12.cpp58 constexpr bool operator()(const tint::transform::BindingPoint& lhs, in operator ()()
59 const tint::transform::BindingPoint& rhs) const { in operator ()()
73 const tint::transform::BindingPoint& binding_point) { in Serialize()
88 const std::unordered_map<tint::transform::BindingPoint, T>& map) { in Serialize() argument
91 std::map<tint::transform::BindingPoint, T, CompareBindingPoint> sorted(map.begin(), in Serialize()
229 using tint::transform::BindingPoint; in Create()
253 BindingPoint srcBindingPoint{static_cast<uint32_t>(group), in Create()
255 BindingPoint dstBindingPoint{static_cast<uint32_t>(group), in Create()
285 BindingPoint bindingPoint{static_cast<uint32_t>(group), in Create()
766 transformInputs.Add<tint::transform::FirstIndexOffset::BindingPoint>( in Compile()
/third_party/skia/third_party/externals/dawn/src/dawn_native/metal/
DShaderModuleMTL.mm64 using BindingPoint = tint::transform::BindingPoint;
84 BindingPoint srcBindingPoint{static_cast<uint32_t>(group),
86 BindingPoint dstBindingPoint{0, shaderIndex};
112 BindingPoint srcBindingPoint{static_cast<uint32_t>(kPullingBufferBindingSet),
114 BindingPoint dstBindingPoint{0, metalIndex};
/third_party/skia/third_party/externals/tint/src/writer/msl/
Dgenerator_impl_sanitizer_test.cc197 sem::BindingPoint{0, 1}, 7u); in TEST_F()
199 sem::BindingPoint{0, 2}, 2u); in TEST_F()
253 sem::BindingPoint{0, 2}, 2u); in TEST_F()
/third_party/skia/third_party/externals/tint/src/writer/hlsl/
Dgenerator.h53 sem::BindingPoint root_constant_binding_point;

12