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

◆ on_attach()

void MayaFlux::Buffers::VolumeSurfaceProcessor::on_attach ( const std::shared_ptr< Buffer > &  buffer)
overrideprotectedvirtual

Validate the named field, bind the grid, and size the dispatch.

Parameters
bufferThe attached buffer, expected to be a VolumeGridBuffer.

Reimplemented from MayaFlux::Buffers::ShaderProcessor.

Definition at line 57 of file VolumeSurfaceProcessor.cpp.

58{
60
61 bind_buffer("grid_out", m_grid_buf);
62
64}
virtual void on_attach(const std::shared_ptr< Buffer > &)
Called when this processor is attached to a buffer.
void bind_buffer(const std::string &descriptor_name, const std::shared_ptr< VKBuffer > &buffer)
Bind a VKBuffer to a named shader descriptor.
void write_params()
Size the push constant block to at least SurfaceParams and write the lattice dimensions,...

References MayaFlux::Buffers::ShaderProcessor::bind_buffer(), m_grid_buf, MayaFlux::Buffers::BufferProcessor::on_attach(), and write_params().

+ Here is the call graph for this function: