MayaFlux 0.3.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 727 of file VKGraphicsPipeline.cpp.

732{
733 if (!buffer) {
735 "Cannot bind null index buffer");
736 return;
737 }
738
739 cmd.bindIndexBuffer(buffer, offset, index_type);
740}
#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.