File tree Expand file tree Collapse file tree 4 files changed +24
-20
lines changed
backends/vulkan/runtime/api Expand file tree Collapse file tree 4 files changed +24
-20
lines changed Original file line number Diff line number Diff line change @@ -274,16 +274,5 @@ UniformParamsBuffer& UniformParamsBuffer::operator=(
274
274
return *this ;
275
275
}
276
276
277
- ParamsBindList::ParamsBindList (
278
- std::initializer_list<const BufferBindInfo> init_list) {
279
- bind_infos.resize (init_list.size ());
280
- std::copy (init_list.begin (), init_list.end (), bind_infos.begin ());
281
- }
282
-
283
- void ParamsBindList::append (const ParamsBindList& other) {
284
- bind_infos.insert (
285
- bind_infos.end (), other.bind_infos .begin (), other.bind_infos .end ());
286
- }
287
-
288
277
} // namespace api
289
278
} // namespace vkcompute
Original file line number Diff line number Diff line change @@ -266,14 +266,6 @@ class UniformParamsBuffer final {
266
266
}
267
267
};
268
268
269
- struct ParamsBindList final {
270
- std::vector<BufferBindInfo> bind_infos;
271
-
272
- ParamsBindList (std::initializer_list<const BufferBindInfo> init_list);
273
-
274
- void append (const ParamsBindList& other);
275
- };
276
-
277
269
class StorageBuffer final {
278
270
private:
279
271
Context* context_p_;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ namespace vkcompute {
16
16
namespace api {
17
17
18
18
//
19
- // BufferBinding
19
+ // BufferBindInfo
20
20
//
21
21
22
22
BufferBindInfo::BufferBindInfo ()
@@ -27,6 +27,21 @@ BufferBindInfo::BufferBindInfo(const VulkanBuffer& buffer_p)
27
27
offset (buffer_p.mem_offset()),
28
28
range(buffer_p.mem_range()) {}
29
29
30
+ //
31
+ // ParamsBindList
32
+ //
33
+
34
+ ParamsBindList::ParamsBindList (
35
+ std::initializer_list<const BufferBindInfo> init_list) {
36
+ bind_infos.resize (init_list.size ());
37
+ std::copy (init_list.begin (), init_list.end (), bind_infos.begin ());
38
+ }
39
+
40
+ void ParamsBindList::append (const ParamsBindList& other) {
41
+ bind_infos.insert (
42
+ bind_infos.end (), other.bind_infos .begin (), other.bind_infos .end ());
43
+ }
44
+
30
45
//
31
46
// DescriptorSet
32
47
//
Original file line number Diff line number Diff line change @@ -36,6 +36,14 @@ struct BufferBindInfo final {
36
36
BufferBindInfo (const VulkanBuffer& buffer_p);
37
37
};
38
38
39
+ struct ParamsBindList final {
40
+ std::vector<BufferBindInfo> bind_infos;
41
+
42
+ ParamsBindList (std::initializer_list<const BufferBindInfo> init_list);
43
+
44
+ void append (const ParamsBindList& other);
45
+ };
46
+
39
47
class DescriptorSet final {
40
48
public:
41
49
explicit DescriptorSet (VkDevice, VkDescriptorSet, ShaderLayout::Signature);
You can’t perform that action at this time.
0 commit comments