private bool LoadTexture(SharpDX.Direct3D11.Device device, string textureFileName)
        {
            // Create the texture object.
            Texture = new DTexture();

            // Initialize the texture object.
            bool result = Texture.Initialize(device, textureFileName);

            return(result);
        }
 private void ReleaseTexture()
 {
     // Release the texture object.
     Texture?.ShutDown();
     Texture = null;
 }