MayaFlux 0.1.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 613 of file VKGraphicsPipeline.cpp.

619{
620 if (!m_layout) {
622 "Cannot push constants without pipeline layout");
623 return;
624 }
625
626 if (!data) {
628 "Cannot push null data");
629 return;
630 }
631
632 cmd.pushConstants(m_layout, stages, offset, size, data);
633}
#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: