Slim Dx Version 4.0 13.43 -
context.InputAssembler.InputLayout = InputLayout.FromDescription(_device, typeof(Vertex), new[] { new InputElement("POSITION", 0, Format.R32G32B32_Float, 0, 0), new InputElement("TEXCOORD", 0, Format.R32G32_Float, 12, 0) });
context.InputAssembler.PrimitiveTopology = PrimitiveTopology.TriangleStrip; context.InputAssembler.SetVertexBuffers(0, new[] { new VertexBufferBinding(_device, sprite, 0) }); slim dx version 4.0 13.43
This example demonstrates how to load a texture and render a sprite using Slim DX 4.0. context