Slim Dx Version 4.0 13.43 -

// Load a texture using (var stream = System.IO.File.OpenRead("texture.png")) { var textureData = Texture2D.FromStream(_device, stream, ImageInformation.FromFile("texture.png")); _texture = textureData; _textureView = new ShaderResourceView(_device, _texture); }

// Present the screen _swapChain.Present(0, PresentFlags.None); } } slim dx version 4.0 13.43

Here's a useful piece of code to get you started: // Load a texture using (var stream = System

// Main loop while (true) { // Clear the screen var renderTarget = _swapChain.GetBuffer<Texture2D>(0); var context = _device.ImmediateContext; context.ClearRenderTargetView(renderTarget, Color.CornflowerBlue); _texture = textureData

context.InputAssembler.PrimitiveTopology = PrimitiveTopology.TriangleStrip; context.InputAssembler.SetVertexBuffers(0, new[] { new VertexBufferBinding(_device, sprite, 0) });