コード例 #1
0
 public static void PresentDebug(DeviceContext context, RenderTargetSet target)
 {
     if (m_CurrentDebugSurface != "None")
     {
         PostEffectHelper.Copy(context, target, m_DebugRenderTarget);
     }
     if (m_TakeSnapshot)
     {
         PostEffectHelper.Copy(context, m_SnapshotRenderTarget, target);
         m_TakeSnapshot = false;
     }
     if (m_ShowSnapshot)
     {
         if (m_ShowSnapshotDifference)
         {
             PostEffectHelper.Copy(context, m_DebugRenderTarget, target);
             PostEffectHelper.Difference(context, target, m_SnapshotRenderTarget, m_DebugRenderTarget);
         }
         else
         {
             PostEffectHelper.Copy(context, target, m_SnapshotRenderTarget);
         }
     }
 }