Example #1
0
 /// <summary>
 /// Creates and loads the SharedInstance if it has not already been loaded. This method is thread safe.
 /// </summary>
 public static void Load()
 {
     if (sharedInstance == null)
     {
         lock (initKey) {
             if (sharedInstance == null)
             {
                 sharedInstance = new SolidColorMeshShader();
             }
         }
     }
 }
Example #2
0
 public override void Dispose()
 {
     base.Dispose();
     sharedInstance = null;
 }