public GLSlangResultsPanel(GLSlang.IShader shader, SPIRV.IProgram spirv) { InitializeComponent(); m_Shader = shader; m_SPIRV = spirv; if (spirv != null) { textBox1.Text = spirv.Disassemble(); button1.Enabled = true; } else { textBox1.Text = shader.InfoLog.Replace("\n", Environment.NewLine); button1.Enabled = false; } }
public GLSLangResultSet(GLSlang.IShader shader) { m_Results.ReadOnly = true; m_Results.Dock = DockStyle.Fill; m_Results.Multiline = true; m_Results.ScrollBars = ScrollBars.Both; m_Results.WordWrap = false; SPIRV.IProgram spirv = shader.CompileSPIRV(); if (spirv != null) { m_Results.Text = spirv.Disassemble(); } else { m_Results.Text = shader.InfoLog.Replace("\n", Environment.NewLine); } }