Struct vulkano::command_buffer::commands_raw::CmdDrawIndexedRaw [] [src]

pub struct CmdDrawIndexedRaw { /* fields omitted */ }

Command that draws indexed vertices.

Note: Unless you are writing a custom implementation of a command buffer, you are encouraged to ignore this struct and use a CmdDrawIndexed instead.

Methods

impl CmdDrawIndexedRaw
[src]

Builds a new command that executes an indexed draw command.

The command will use the vertex buffers, index buffer, dynamic states, descriptor sets, push constants, and graphics pipeline currently bound.

This command corresponds to the vkCmdDrawIndexed function in Vulkan. It takes the first index_count indices in the index buffer starting at first_index, and adds the value of vertex_offset to each index. instance_count and first_instance are related to instancing and serve the same purpose as in other drawing commands.

Safety

While building the command is always safe, care must be taken when it is added to a command buffer. A correct combination of graphics pipeline, descriptor set, push constants, vertex buffers, index buffer, and dynamic state must have been bound beforehand.

There is no limit to the values of the parameters, but they must be in range of the index buffer and vertex buffer.