15 #include <vsg/vk/CommandBuffer.h>
17 #include <vsg/commands/Command.h>
28 Draw(uint32_t in_vertexCount, uint32_t in_instanceCount, uint32_t in_firstVertex, uint32_t in_firstInstance) :
29 vertexCount(in_vertexCount),
30 instanceCount(in_instanceCount),
31 firstVertex(in_firstVertex),
32 firstInstance(in_firstInstance) {}
36 void read(
Input& input)
override;
37 void write(
Output& output)
const override;
41 vkCmdDraw(commandBuffer, vertexCount, instanceCount, firstVertex, firstInstance);
44 uint32_t vertexCount = 0;
45 uint32_t instanceCount = 0;
46 uint32_t firstVertex = 0;
47 uint32_t firstInstance = 0;
CommandBuffer encapsulates VkCommandBuffer.
Definition: CommandBuffer.h:27
Draw command encapsulates vkCmdDraw call and associated settings.
Definition: Draw.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,...