Beispiel #1
0
 public static void AllowProfiling(bool enableFlag)
 {
     PixHelper.D3DPERF_SetOptions(enableFlag ? 0 : 1);
 }
Beispiel #2
0
 public static void SetMarker(Color color, string name, params object[] parameters)
 {
     PixHelper.D3DPERF_SetMarker(color.ToBgra(), string.Format(name, parameters));
 }
Beispiel #3
0
 public static void SetMarker(Color color, string name)
 {
     PixHelper.D3DPERF_SetMarker(color.ToBgra(), name);
 }
Beispiel #4
0
 public static int EndEvent()
 {
     return(PixHelper.D3DPERF_EndEvent());
 }
Beispiel #5
0
 public static int BeginEvent(Color color, string name, params object[] parameters)
 {
     return(PixHelper.D3DPERF_BeginEvent(color.ToBgra(), string.Format(name, parameters)));
 }
Beispiel #6
0
 public static int BeginEvent(Color color, string name)
 {
     return(PixHelper.D3DPERF_BeginEvent(color.ToBgra(), name));
 }