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

◆ collect_push_writes()

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

Push the field's current read slot as binding 0.

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

The read slot changes whenever an upstream stage swaps it, so it is resolved again on every dispatch.

Reimplemented from MayaFlux::Buffers::ComputeProcessor.

Definition at line 87 of file VolumeSurfaceProcessor.cpp.

90{
92
93 if (!m_volume) {
94 return;
95 }
96
97 writes.push_back({
98 .binding = 0,
100 .buffer = vk::DescriptorBufferInfo(
101 m_volume->read_handle(m_field_name), 0, m_volume->get_field_bytes(m_field_name)),
102 });
103}
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< VolumeGridBuffer > m_volume
The attached volume, cached for the descriptor write.
@ 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_field_name, m_volume, MayaFlux::Portal::Graphics::STORAGE, and MayaFlux::Portal::Graphics::to_vk_descriptor_type().

Here is the call graph for this function: