MayaFlux 0.1.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 755 of file RenderFlow.cpp.

759{
760 auto cmd = m_shader_foundry->get_command_buffer(cmd_id);
761 if (!cmd) {
763 "Invalid command buffer ID: {}", cmd_id);
764 return;
765 }
766
767 cmd.bindIndexBuffer(buffer->get_buffer(), 0, index_type);
768}
#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: