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

◆ bind_index_buffer()

void MayaFlux::Portal::Graphics::RenderFlow::bind_index_buffer ( CommandBufferID  cmd_id,
const std::shared_ptr< Buffers::VKBuffer > &  buffer,
vk::IndexType  index_type = vk::IndexType::eUint32 
)

Bind index buffer.

Parameters
cmd_idCommand buffer ID
bufferIndex buffer
index_typeIndex type (16-bit or 32-bit)

Definition at line 761 of file RenderFlow.cpp.

765{
766 auto cmd = m_shader_foundry->get_command_buffer(cmd_id);
767 if (!cmd) {
769 "Invalid command buffer ID: {}", cmd_id);
770 return;
771 }
772
773 cmd.bindIndexBuffer(buffer->get_buffer(), 0, index_type);
774}
#define MF_ERROR(comp, ctx,...)
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 MayaFlux::Portal::Graphics::ShaderFoundry::get_command_buffer(), m_shader_foundry, MF_ERROR, MayaFlux::Journal::Portal, and MayaFlux::Journal::Rendering.

+ Here is the call graph for this function: