Ejemplo n.º 1
0
        public void CloseLogfile()
        {
            if (!m_LogLoaded)
            {
                return;
            }

            m_LogFile = "";

            m_Renderer.CloseThreadSync();
            m_Renderer = new RenderManager();

            m_APIProperties = null;
            m_FrameInfo     = null;
            m_DrawCalls     = null;
            m_Buffers       = null;
            m_Textures      = null;

            m_D3D11PipelineState = null;
            m_GLPipelineState    = null;
            m_PipelineState.SetStates(null, null, null);

            DebugMessages.Clear();
            UnreadMessageCount = 0;

            m_LogLoaded = false;

            foreach (var logviewer in m_LogViewers)
            {
                Control c = (Control)logviewer;
                if (c.InvokeRequired)
                {
                    c.Invoke(new Action(() => logviewer.OnLogfileClosed()));
                }
                else
                {
                    logviewer.OnLogfileClosed();
                }
            }
        }
Ejemplo n.º 2
0
        public void CloseLogfile()
        {
            if (!m_LogLoaded) return;

            m_LogFile = "";

            m_Renderer.CloseThreadSync();
            m_Renderer = new RenderManager();

            m_APIProperties = null;
            m_FrameInfo = null;
            m_DrawCalls = null;
            m_Buffers = null;
            m_Textures = null;

            m_D3D11PipelineState = null;
            m_GLPipelineState = null;
            m_PipelineState.SetStates(null, null, null);

            DebugMessages.Clear();
            UnreadMessageCount = 0;

            m_LogLoaded = false;

            foreach (var logviewer in m_LogViewers)
            {
                Control c = (Control)logviewer;
                if (c.InvokeRequired)
                    c.Invoke(new Action(() => logviewer.OnLogfileClosed()));
                else
                    logviewer.OnLogfileClosed();
            }
        }
Ejemplo n.º 3
0
        public VirtualOpenFileDialog(RenderManager rm)
        {
            InitializeComponent();

            Icon = global::renderdocui.Properties.Resources.icon;

            m_RM = rm;

            showHidden.Checked = false;
            fileType.SelectedIndex = 0;
            back.Enabled = forward.Enabled = up.Enabled = false;
        }