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

◆ collect_push_writes()

void MayaFlux::Buffers::RelaxationEmitProcessor::collect_push_writes ( const std::shared_ptr< VKBuffer > & buffer,
std::vector< Portal::Graphics::PushDescriptorWrite > & writes )
overrideprotectedvirtual

Push cell_state at the grid's front generation and vertices at the grid's own vertex storage.

Parameters
bufferThe attached buffer.
writesReceives the parent's writes, then the two bindings.

Reimplemented from MayaFlux::Buffers::ComputeProcessor.

Definition at line 36 of file RelaxationEmitProcessor.cpp.

39{
41
42 if (!m_grid) {
43 return;
44 }
45
47
48 writes.push_back({
49 .binding = 0,
50 .type = type,
51 .buffer = vk::DescriptorBufferInfo(
52 m_grid->get_buffer_resources().back_buffers[m_grid->front_index()].buffer,
53 0, m_grid->get_state_bytes()),
54 });
55 writes.push_back({
56 .binding = 1,
57 .type = type,
58 .buffer = vk::DescriptorBufferInfo(m_grid->get_buffer(), 0, m_grid->get_size_bytes()),
59 });
60}
virtual void collect_push_writes(const std::shared_ptr< VKBuffer > &buffer, std::vector< Portal::Graphics::PushDescriptorWrite > &writes)
Collect the writes for the push descriptor set, set 0.
std::shared_ptr< RelaxationGridBuffer > m_grid
@ STORAGE
Large arrays or buffers the shader may write (SSBO).
vk::DescriptorType to_vk_descriptor_type(DescriptorRole role)
Convert DescriptorRole to the corresponding vk::DescriptorType.

References MayaFlux::Buffers::ComputeProcessor::collect_push_writes(), m_grid, MayaFlux::Portal::Graphics::STORAGE, and MayaFlux::Portal::Graphics::to_vk_descriptor_type().

Here is the call graph for this function: