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

◆ on_before_execute()

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

Reject buffers that are not the validated volume.

Parameters
cmd_idCommand buffer this cycle's dispatch will be recorded into.
bufferThe attached buffer, received as VKBuffer.
Returns
True if a volume survived validation and matches the argument.

Reimplemented from MayaFlux::Buffers::ShaderProcessor.

Definition at line 246 of file VolumeFieldProcessor.cpp.

249{
250 return m_volume && std::dynamic_pointer_cast<VolumeGridBuffer>(buffer) != nullptr;
251}
std::shared_ptr< VolumeGridBuffer > m_volume
The attached volume, null until on_attach validates it.

References m_volume.