LiteFX::Rendering::Backends::DirectX12CommandBuffer::draw¶
Draws all vertices from the vertex buffer provided in vertexBuffer.
Synopsis¶
Declared in <litefx/rendering.hpp>
[[dllimport, dllexport]] virtual void draw(
vertex_buffer_type const& vertexBuffer,
UInt32 instances = 1,
UInt32 firstVertex = 0,
UInt32 firstInstance = 0) const;
Description¶
This helper method binds the vertex buffer and issues a draw command for all vertices.
Parameters¶
| Name | Description |
|---|---|
| vertexBuffer | The vertex buffer to draw from. |
| instances | The number of instances to draw. |
| firstVertex | The index of the first vertex to start drawing from. |
| firstInstance | The index of the first instance to draw. |