public void Draw() { Device.Reset(); VertexBuffer.Update <Vertex>(Triangle.Vertices); CommandList.SetRenderTarget(Texture); //Clear our backbuffer to the updated color CommandList.Clear(Texture, new Color4(0.0f, 0.2f, 0.4f, 1)); CommandList.SetInputLayout(Shaders.Layout); CommandList.SetViewPort(SwapChain.PresentParameters.Width, SwapChain.PresentParameters.Height, 0, 0); CommandList.SetVertexBuffer(VertexBuffer); CommandList.SetVertexShader(Shaders.VertexShader); CommandList.SetPixelShader(Shaders.PixelShader); //---Draw Mesh CommandList.SetPrimitiveType(SharpDX.Direct3D.PrimitiveTopology.TriangleList); CommandList.Draw(Triangle.VertexCount); }