コード例 #1
0
        /// <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
        }
コード例 #2
0
        /// <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
        }
コード例 #3
0
 // DxAnnotations are visible in NSight frame debugger
 internal void BeginDxAnnotationBlock(string tag)
 {
     m_annotations.BeginEvent(tag);
 }
コード例 #4
0
 public void BeginEvent(string tag)
 {
     m_annotation.BeginEvent(tag);
 }