MayaFlux 0.4.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 799 of file RenderFlow.cpp.

803{
805 if (!cmd) {
807 "Invalid command buffer ID: {}", cmd_id);
808 return;
809 }
810
811 cmd.bindIndexBuffer(buffer->get_index_buffer(), 0, index_type);
812}
#define MF_ERROR(comp, ctx,...)
vk::CommandBuffer cmd
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 cmd, 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: