}
}
-bool Geometry::Draw(
- Graphics::Controller& graphicsController,
- Graphics::CommandBuffer& commandBuffer,
- uint32_t elementBufferOffset,
- uint32_t elementBufferCount)
+bool Geometry::BindVertexAttributes(Graphics::CommandBuffer& commandBuffer)
{
//Bind buffers to attribute locations
const auto vertexBufferCount = static_cast<uint32_t>(mVertexBuffers.Count());
commandBuffer.BindVertexBuffers(0, buffers, offsets);
+ return true;
+}
+
+bool Geometry::Draw(
+ Graphics::Controller& graphicsController,
+ Graphics::CommandBuffer& commandBuffer,
+ uint32_t elementBufferOffset,
+ uint32_t elementBufferCount)
+{
uint32_t numIndices(0u);
intptr_t firstIndexOffset(0u);
if(mIndexBuffer)
{
// Un-indexed draw call
uint32_t numVertices(0u);
- if(vertexBufferCount > 0)
+
+ if(mVertexBuffers.Count() > 0)
{
// truncated, no value loss happening in practice
numVertices = static_cast<uint32_t>(mVertexBuffers[0]->GetElementCount());