MayaFlux 0.5.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 130 of file UVFieldProcessor.cpp.

133{
134 if (!buffer) {
135 return false;
136 }
137
138 m_pc.vertex_count = static_cast<uint32_t>(buffer->get_size_bytes() / sizeof(Kakshya::MeshVertex));
139 if (m_pc.vertex_count == 0) {
140 return false;
141 }
142
144 "UVFieldProcessor dispatch: {} vertices, mode={}, write_colour={}, has_texture={}",
146
148 return true;
149}
#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: