IRecordingSubCommandBuffer::drawIndexed - dpw105f18/papago-api GitHub Wiki

Record draw call using an index buffer

IRecordingCommandBuffer& drawIndexed(
  size_t indexCount, 
  size_t instanceCount = 1, 
  size_t firstIndex    = 0, 
  size_t vertexOffset  = 0, 
  size_t firstInstance = 0)

Returns

Returns a reference to the IRecordingSubCommandBuffer, which the method was called on.

Parameters

Parameter Description
indexCount How many verticies do we draw
instanceCount How many instances are we using
firstIndex Where is the first index located
vertexOffset The constant offset added to the vertex index
firstInstance Instance ID of first instance to draw