protected void Clean() { // clean up all resources // anything we missed will show up in the debug output Vertices.Close(); Vertexbuffer.Dispose(); Layout.Dispose(); InputSignature.Dispose(); Vertexshader.Dispose(); Pixelshader.Dispose(); Rendertarget.Dispose(); _swapchain.Dispose(); _device.Dispose(); }