Dx Version 4.0 13.43 [upd] - Slim
This example demonstrates how to load a texture and render a sprite using Slim DX 4.0.
Here's a useful piece of code to get you started: slim dx version 4.0 13.43
// Present the screen _swapChain.Present(0, PresentFlags.None); } } This example demonstrates how to load a texture
context.InputAssembler.PrimitiveTopology = PrimitiveTopology.TriangleStrip; context.InputAssembler.SetVertexBuffers(0, new[] { new VertexBufferBinding(_device, sprite, 0) }); new[] { new VertexBufferBinding(_device
class Program { private static Device _device; private static SwapChain _swapChain; private static Texture2D _texture; private static ShaderResourceView _textureView;
Device.CreateWithSwapChain(GraphicsAdapter.Default, DeviceCreationFlags.None, desc, out _device, out _swapChain);