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

◆ on_before_execute()

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

Called before each process callback.

Parameters
cmdCommand buffer
bufferCurrently processing buffer
Returns
True to proceed with execution, false to skip

Override to update push constants or dynamic descriptors.

Reimplemented from MayaFlux::Buffers::ShaderProcessor.

Definition at line 129 of file UVFieldProcessor.cpp.

132{
133 if (!buffer) {
134 return false;
135 }
136
137 m_pc.vertex_count = static_cast<uint32_t>(buffer->get_size_bytes() / 60U);
138 if (m_pc.vertex_count == 0) {
139 return false;
140 }
141
143 "UVFieldProcessor dispatch: {} vertices, mode={}, write_colour={}, has_texture={}",
145
147 return true;
148}
#define MF_RT_DEBUG(comp, ctx,...)
void set_push_constant_data(const T &data)
Update push constant data (type-safe)
std::shared_ptr< Core::VKImage > m_texture
@ BufferProcessing
Buffer processing (Buffers::BufferManager, processing chains)
@ Buffers
Buffers, Managers, processors and processing chains.

References MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, m_pc, m_texture, MF_RT_DEBUG, MayaFlux::Buffers::UVFieldProcessor::PushConstants::mode, MayaFlux::Buffers::ShaderProcessor::set_push_constant_data(), MayaFlux::Buffers::UVFieldProcessor::PushConstants::vertex_count, and MayaFlux::Buffers::UVFieldProcessor::PushConstants::write_colour.

+ Here is the call graph for this function: