From b0583f934b9c20368053933a3235b22f52570b3d Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Tue, 23 Jan 2024 12:43:47 -0800 Subject: [PATCH] more --- SpriteBatch/SpriteBatchGame.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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);