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

◆ on_before_execute()

bool MayaFlux::Buffers::VolumeSurfaceProcessor::on_before_execute ( Portal::Graphics::CommandBufferID  cmd_id,
const std::shared_ptr< VKBuffer > &  buffer 
)
overrideprotectedvirtual

Reject buffers that are not VolumeGridBuffer.

Parameters
cmd_idCommand buffer this cycle's dispatch will be recorded into.
bufferThe attached buffer, received as VKBuffer.
Returns
True if the attached buffer is a VolumeGridBuffer.

Reimplemented from MayaFlux::Buffers::ShaderProcessor.

Definition at line 113 of file VolumeSurfaceProcessor.cpp.

116{
117 // return m_volume && std::dynamic_pointer_cast<VolumeGridBuffer>(buffer) != nullptr;
118 return m_volume != nullptr;
119}
std::shared_ptr< VolumeGridBuffer > m_volume
The attached volume, cached for the descriptor write.

References m_volume.