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

◆ resolve_push_constants_into()

void MayaFlux::Buffers::ShaderProcessor::resolve_push_constants_into ( std::vector< uint8_t > &  out,
const std::shared_ptr< VKBuffer > &  buffer 
) const
protected

resolve_push_constants() written into out, reusing its storage.

Definition at line 507 of file ShaderProcessor.cpp.

508{
509 out.assign(m_push_constant_data.begin(), m_push_constant_data.end());
511
512 for (const auto& entry : buffer->get_pipeline_context().push_constant_bindings) {
513 std::memcpy(out.data() + entry.offset, entry.data.data(), entry.data.size());
514 }
515}
std::shared_ptr< NetworkGeometryBuffer > buffer
std::vector< float > * out
std::vector< uint8_t > m_push_constant_data
size_t resolve_push_constant_size(const std::shared_ptr< VKBuffer > &buffer) const
Byte width of this processor's push constant block, extended to cover any fragment staged on the buff...

References buffer, m_push_constant_data, out, and resolve_push_constant_size().

Referenced by MayaFlux::Buffers::ComputeProcessor::execute_shader(), and resolve_push_constants().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: