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

◆ push_constants()

void MayaFlux::Core::VKGraphicsPipeline::push_constants ( vk::CommandBuffer  cmd,
vk::ShaderStageFlags  stages,
uint32_t  offset,
uint32_t  size,
const void *  data 
)

Push constants.

Parameters
cmdCommand buffer
stagesShader stages
offsetOffset in push constant block
sizeSize of data
dataPointer to data

Definition at line 628 of file VKGraphicsPipeline.cpp.

634{
635 if (!m_layout) {
637 "Cannot push constants without pipeline layout");
638 return;
639 }
640
641 if (!data) {
643 "Cannot push null data");
644 return;
645 }
646
647 cmd.pushConstants(m_layout, stages, offset, size, data);
648}
#define MF_ERROR(comp, ctx,...)
@ GraphicsBackend
Graphics/visual rendering backend (Vulkan, OpenGL)
@ Core
Core engine, backend, subsystems.

References MayaFlux::Journal::Core, MayaFlux::Journal::GraphicsBackend, m_layout, and MF_ERROR.

Referenced by push_constants_typed().

+ Here is the caller graph for this function: