A snapshot of rendering statistics from GraphicsDevice.Metrics to be used for runtime debugging and profiling.
コード例 #1
0
        public void Present()
        {
            // We cannot present with a RT set on the device.
            if (_currentRenderTargetCount != 0)
            {
                throw new InvalidOperationException("Cannot call Present when a render target is active.");
            }

            _graphicsMetrics = new GraphicsMetrics();
            PlatformPresent();
        }
コード例 #2
0
 public void Present()
 {
     _graphicsMetrics = new GraphicsMetrics();
     PlatformPresent();
 }