std::vector<const Graphics::Buffer*> buffers,
std::vector<uint32_t> offsets)
{
+ mVertexBufferBindings.firstBinding = firstBinding;
+ mVertexBufferBindings.buffers = buffers; // Copy
+ mVertexBufferBindings.offsets = offsets; // Copy
mCallStack.PushCall("BindVertexBuffers", "");
}
void TestGraphicsCommandBuffer::BindPipeline(const Graphics::Pipeline& pipeline)
{
+ mPipeline = static_cast<TestGraphicsPipeline*>(const_cast<Graphics::Pipeline*>(&pipeline));
mCallStack.PushCall("BindPipeline", "");
}
uint32_t offset,
Graphics::Format format)
{
+ mIndexBufferBinding.buffer = &buffer;
+ mIndexBufferBinding.offset = offset;
+ mIndexBufferBinding.format = format;
mCallStack.PushCall("BindIndexBuffer", "");
}
uint32_t firstVertex,
uint32_t firstInstance)
{
+ drawCommand.drawType = Draw::DrawType::Unindexed;
+ drawCommand.u.unindexedDraw.vertexCount = vertexCount;
+ drawCommand.u.unindexedDraw.instanceCount = instanceCount;
+ drawCommand.u.unindexedDraw.firstVertex = firstVertex;
+ drawCommand.u.unindexedDraw.firstInstance = firstInstance;
mCallStack.PushCall("Draw", "");
}
int32_t vertexOffset,
uint32_t firstInstance)
{
+ drawCommand.drawType = TestGraphicsCommandBuffer::Draw::DrawType::Indexed;
+ drawCommand.u.indexedDraw.indexCount = indexCount;
+ drawCommand.u.indexedDraw.instanceCount = instanceCount;
+ drawCommand.u.indexedDraw.firstIndex = firstIndex;
+ drawCommand.u.indexedDraw.vertexOffset = vertexOffset;
+ drawCommand.u.indexedDraw.firstInstance = firstInstance;
mCallStack.PushCall("DrawIndexed", "");
}