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

◆ resolve_push_constant_size()

size_t MayaFlux::Buffers::ShaderProcessor::resolve_push_constant_size ( const std::shared_ptr< VKBuffer > &  buffer) const
protected

Byte width of this processor's push constant block, extended to cover any fragment staged on the buffer.

Definition at line 242 of file ShaderProcessor.cpp.

243{
244 size_t size = std::max(m_config.push_constant_size, m_push_constant_data.size());
245
246 for (const auto& entry : buffer->get_pipeline_context().push_constant_bindings) {
247 size = std::max(size, static_cast<size_t>(entry.offset) + entry.data.size());
248 }
249
250 return size;
251}
std::vector< uint8_t > m_push_constant_data

References m_config, m_push_constant_data, and MayaFlux::Buffers::ShaderConfig::push_constant_size.

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

+ Here is the caller graph for this function: