/// <summary> /// Begins profiling. /// </summary> /// <param name="profileColor">Color of the profile.</param> /// <param name="name">The name.</param> public void BeginProfile(Color4 profileColor, string name) { #if SILICONSTUDIO_PLATFORM_WINDOWS_DESKTOP if (nativeDeviceProfiler != null) { nativeDeviceProfiler.BeginEvent(name); } else { SharpDX.Direct3D.PixHelper.BeginEvent(new SharpDX.ColorBGRA(profileColor.ToBgra()), name); } #endif }
/// <summary> /// Begins profiling. /// </summary> /// <param name="profileColor">Color of the profile.</param> /// <param name="name">The name.</param> public unsafe void BeginProfile(Color4 profileColor, string name) { #if SILICONSTUDIO_PLATFORM_WINDOWS_DESKTOP if (nativeDeviceProfiler != null) { nativeDeviceProfiler.BeginEvent(name); } else { var rawColor = profileColor.ToBgra(); SharpDX.Direct3D.PixHelper.BeginEvent(*(RawColorBGRA *)(&rawColor), name); } #endif }
// DxAnnotations are visible in NSight frame debugger internal void BeginDxAnnotationBlock(string tag) { m_annotations.BeginEvent(tag); }
public void BeginEvent(string tag) { m_annotation.BeginEvent(tag); }