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

◆ draw()

void MayaFlux::Portal::Graphics::RenderFlow::draw ( CommandBufferID  cmd_id,
uint32_t  vertex_count,
uint32_t  instance_count = 1,
uint32_t  first_vertex = 0,
uint32_t  first_instance = 0 
)

Draw command.

Parameters
cmd_idCommand buffer ID
vertex_countNumber of vertices
instance_countNumber of instances (default: 1)
first_vertexFirst vertex index
first_instanceFirst instance index

Definition at line 831 of file RenderFlow.cpp.

837{
838 auto cmd = m_shader_foundry->get_command_buffer(cmd_id);
839 if (!cmd) {
841 "Invalid command buffer ID: {}", cmd_id);
842 return;
843 }
844
845 cmd.draw(vertex_count, instance_count, first_vertex, first_instance);
846}
#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: