spritebatch
cosmonaut 2024-01-23 12:43:47 -08:00
parent 7eb2477870
commit b0583f934b
1 changed files with 4 additions and 2 deletions

View File

@ -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);