Pass through and display VAO object in GL pipeline state

This commit is contained in:
baldurk
2018-10-01 18:27:44 +01:00
parent 989971f6af
commit ad5cfcd290
5 changed files with 198 additions and 95 deletions
@@ -80,7 +80,8 @@ GLPipelineStateViewer::GLPipelineStateViewer(ICaptureContext &ctx, PipelineState
const QIcon &action_hover = Icons::action_hover();
RDLabel *shaderLabels[] = {
ui->vsShader, ui->tcsShader, ui->tesShader, ui->gsShader, ui->fsShader, ui->csShader,
ui->vaoLabel, ui->vsShader, ui->tcsShader, ui->tesShader,
ui->gsShader, ui->fsShader, ui->csShader,
};
QToolButton *viewButtons[] = {
@@ -361,6 +362,7 @@ GLPipelineStateViewer::GLPipelineStateViewer(ICaptureContext &ctx, PipelineState
m_Common.setMeshViewPixmap(ui->meshView);
ui->vaoLabel->setFont(Formatter::PreferredFont());
ui->viAttrs->setFont(Formatter::PreferredFont());
ui->viBuffers->setFont(Formatter::PreferredFont());
ui->xfbBuffers->setFont(Formatter::PreferredFont());
@@ -522,6 +524,8 @@ void GLPipelineStateViewer::clearState()
m_VBNodes.clear();
m_EmptyNodes.clear();
ui->vaoLabel->setText(QString());
ui->viAttrs->clear();
ui->viBuffers->clear();
ui->topology->setText(QString());
@@ -1265,6 +1269,8 @@ void GLPipelineStateViewer::setState()
m_VBNodes.clear();
m_EmptyNodes.clear();
ui->vaoLabel->setText(ToQStr(state.vertexInput.vertexArrayObject));
vs = ui->viBuffers->verticalScrollBar()->value();
ui->viBuffers->beginUpdate();
ui->viBuffers->clear();