diff --git a/SpriteBatch/SpriteBatchGame.cs b/SpriteBatch/SpriteBatchGame.cs index e445f25..8ff102a 100644 --- a/SpriteBatch/SpriteBatchGame.cs +++ b/SpriteBatch/SpriteBatchGame.cs @@ -77,8 +77,10 @@ namespace MoonWorks.Test cmdbuf.BindGraphicsPipeline(spriteBatchPipeline); cmdbuf.BindVertexBuffers( new BufferBinding(quadVertexBuffer, 0), - new BufferBinding(SpriteBatch.) - ) + new BufferBinding(SpriteBatch.BatchBuffer, 0) + ); + cmdbuf.BindIndexBuffer(quadIndexBuffer, IndexElementSize.Sixteen); + cmdbuf.DrawInstancedPrimitives(0, 0, SpriteBatch.Index * 2, SpriteBatch.Index, ); cmdbuf.EndRenderPass(); } GraphicsDevice.Submit(cmdbuf);