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

◆ push_constants()

void MayaFlux::Portal::Graphics::RenderFlow::push_constants ( CommandBufferID  cmd_id,
RenderPipelineID  pipeline,
const void *  data,
size_t  size,
uint32_t  offset = 0 
)

Push constants.

Parameters
cmd_idCommand buffer ID
pipelinePipeline ID
dataConstant data
sizeData size in bytes
offsetByte offset in push constant range (default: 0)

Definition at line 848 of file RenderFlow.cpp.

854{
855 auto pipeline_it = m_pipelines.find(pipeline_id);
856 if (pipeline_it == m_pipelines.end()) {
858 "Invalid pipeline ID: {}", pipeline_id);
859 return;
860 }
861
863 if (!cmd) {
865 "Invalid command buffer ID: {}", cmd_id);
866 return;
867 }
868
869 cmd.pushConstants(
870 pipeline_it->second.layout,
871 pipeline_it->second.push_constant_stages,
872 offset,
873 static_cast<uint32_t>(size),
874 data);
875}
#define MF_ERROR(comp, ctx,...)
vk::CommandBuffer cmd
Range size
std::unordered_map< RenderPipelineID, PipelineState > m_pipelines
vk::CommandBuffer get_command_buffer(CommandBufferID cmd_id)
Get Vulkan command buffer handle from CommandBufferID.
@ Rendering
GPU rendering operations (graphics pipeline, frame rendering)
@ Portal
High-level user-facing API layer.

References cmd, MayaFlux::Portal::Graphics::ShaderFoundry::get_command_buffer(), m_pipelines, m_shader_foundry, MF_ERROR, MayaFlux::Journal::Portal, MayaFlux::Journal::Rendering, and size.

+ Here is the call graph for this function: