MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ push_ssbo_binding()

void MayaFlux::Buffers::InstanceSSBOProcessor::push_ssbo_binding ( const std::shared_ptr< VKBuffer > &  vertex_buf)
private

Definition at line 127 of file InstanceSSBOProcessor.cpp.

128{
129 if (!m_transform_ssbo)
130 return;
131
132 auto& bindings = vertex_buf->get_engine_context().ssbo_bindings;
133
134 Portal::Graphics::DescriptorBindingInfo info;
135 info.set = 0;
136 info.binding = k_transform_ssbo_binding;
137 info.type = vk::DescriptorType::eStorageBuffer;
138 info.buffer_info.buffer = m_transform_ssbo->get_buffer();
139 info.buffer_info.offset = 0;
140 info.buffer_info.range = m_transform_ssbo->get_size_bytes();
141
142 auto it = std::ranges::find_if(bindings, [](const auto& b) {
143 return b.set == 0 && b.binding == k_transform_ssbo_binding;
144 });
145 if (it != bindings.end()) {
146 *it = info;
147 } else {
148 bindings.push_back(info);
149 }
150}
size_t b

References b, MayaFlux::Portal::Graphics::DescriptorBindingInfo::binding, MayaFlux::Portal::Graphics::DescriptorBindingInfo::buffer_info, k_transform_ssbo_binding, m_transform_ssbo, MayaFlux::Portal::Graphics::DescriptorBindingInfo::set, and MayaFlux::Portal::Graphics::DescriptorBindingInfo::type.

Referenced by on_attach(), and processing_function().

+ Here is the caller graph for this function: