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

◆ bind_index_buffer()

void MayaFlux::Core::VKGraphicsPipeline::bind_index_buffer ( vk::CommandBuffer  cmd,
vk::Buffer  buffer,
vk::DeviceSize  offset = 0,
vk::IndexType  index_type = vk::IndexType::eUint32 
)

Bind index buffer.

Parameters
cmdCommand buffer
bufferIndex buffer
offsetOffset in buffer
index_typeIndex type (uint16 or uint32)

Definition at line 680 of file VKGraphicsPipeline.cpp.

685{
686 if (!buffer) {
688 "Cannot bind null index buffer");
689 return;
690 }
691
692 cmd.bindIndexBuffer(buffer, offset, index_type);
693}
#define MF_ERROR(comp, ctx,...)
@ GraphicsBackend
Graphics/visual rendering backend (Vulkan, OpenGL)
@ Core
Core engine, backend, subsystems.

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