15 #include <vsg/vk/CommandBuffer.h>
17 #include <vsg/commands/Command.h>
28 DrawIndexed(uint32_t in_indexCount, uint32_t in_instanceCount, uint32_t in_firstIndex, int32_t in_vertexOffset, uint32_t in_firstInstance) :
29 indexCount(in_indexCount),
30 instanceCount(in_instanceCount),
31 firstIndex(in_firstIndex),
32 vertexOffset(in_vertexOffset),
33 firstInstance(in_firstInstance) {}
37 void read(
Input& input)
override;
38 void write(
Output& output)
const override;
42 vkCmdDrawIndexed(commandBuffer, indexCount, instanceCount, firstIndex, vertexOffset, firstInstance);
45 uint32_t indexCount = 0;
46 uint32_t instanceCount = 0;
47 uint32_t firstIndex = 0;
48 uint32_t vertexOffset = 0;
49 uint32_t firstInstance = 0;
CommandBuffer encapsulates VkCommandBuffer.
Definition: CommandBuffer.h:27
DrawIndexed command encapsulates vkCmdDrawIndexed call and associated settings.
Definition: DrawIndexed.h:24
int compare(const Object &rhs_object) const override
compare two objects, return -1 if this object is less than rhs, return 0 if it's equal,...