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

◆ draw_indexed()

void MayaFlux::Portal::Graphics::RenderFlow::draw_indexed ( CommandBufferID  cmd_id,
uint32_t  index_count,
uint32_t  instance_count = 1,
uint32_t  first_index = 0,
int32_t  vertex_offset = 0,
uint32_t  first_instance = 0 
)

Indexed draw command.

Parameters
cmd_idCommand buffer ID
index_countNumber of indices
instance_countNumber of instances (default: 1)
first_indexFirst index
vertex_offsetVertex offset
first_instanceFirst instance index

Definition at line 848 of file RenderFlow.cpp.

855{
856 auto cmd = m_shader_foundry->get_command_buffer(cmd_id);
857 if (!cmd) {
858 return;
859 }
860
861 cmd.drawIndexed(index_count, instance_count, first_index,
862 vertex_offset, first_instance);
863}
vk::CommandBuffer get_command_buffer(CommandBufferID cmd_id)
Get Vulkan command buffer handle from CommandBufferID.

References MayaFlux::Portal::Graphics::ShaderFoundry::get_command_buffer(), and m_shader_foundry.

+ Here is the call graph for this function: