mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 06:56:40 +00:00
Change pipeline state viewers so minimum panel size is smaller
* Add scroll areas for the larger tabs and allow pipe flowchart to resize to its minimum size if needed. * The idea here isn't that anyone will seriously try to use the pipe view at 500x200 but more that the minimum size doesn't become a problem while moving around windows or panels, or resizing temporarily
This commit is contained in:
@@ -27,8 +27,10 @@
|
||||
#include <QMouseEvent>
|
||||
#include <QScrollBar>
|
||||
#include <QXmlStreamWriter>
|
||||
#include "3rdparty/flowlayout/FlowLayout.h"
|
||||
#include "3rdparty/toolwindowmanager/ToolWindowManager.h"
|
||||
#include "Code/Resources.h"
|
||||
#include "Widgets/Extended/RDHeaderView.h"
|
||||
#include "PipelineStateViewer.h"
|
||||
#include "ui_D3D11PipelineStateViewer.h"
|
||||
|
||||
@@ -117,6 +119,23 @@ D3D11PipelineStateViewer::D3D11PipelineStateViewer(ICaptureContext &ctx,
|
||||
ui->vsClasses, ui->hsClasses, ui->dsClasses, ui->gsClasses, ui->psClasses, ui->csClasses,
|
||||
};
|
||||
|
||||
// setup FlowLayout for CS shader group, with debugging controls
|
||||
{
|
||||
QLayout *oldLayout = ui->csShaderGroup->layout();
|
||||
|
||||
QObjectList childs = ui->csShaderGroup->children();
|
||||
childs.removeOne((QObject *)oldLayout);
|
||||
|
||||
delete oldLayout;
|
||||
|
||||
FlowLayout *csShaderFlow = new FlowLayout(ui->csShaderGroup, -1, 3, 3);
|
||||
|
||||
for(QObject *o : childs)
|
||||
csShaderFlow->addWidget(qobject_cast<QWidget *>(o));
|
||||
|
||||
ui->csShaderGroup->setLayout(csShaderFlow);
|
||||
}
|
||||
|
||||
for(QToolButton *b : viewButtons)
|
||||
QObject::connect(b, &QToolButton::clicked, this, &D3D11PipelineStateViewer::shaderView_clicked);
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -27,6 +27,7 @@
|
||||
#include <QMouseEvent>
|
||||
#include <QScrollBar>
|
||||
#include <QXmlStreamWriter>
|
||||
#include "3rdparty/flowlayout/FlowLayout.h"
|
||||
#include "3rdparty/toolwindowmanager/ToolWindowManager.h"
|
||||
#include "Code/Resources.h"
|
||||
#include "PipelineStateViewer.h"
|
||||
@@ -144,6 +145,23 @@ D3D12PipelineStateViewer::D3D12PipelineStateViewer(ICaptureContext &ctx,
|
||||
ui->gsCBuffers, ui->psCBuffers, ui->csCBuffers,
|
||||
};
|
||||
|
||||
// setup FlowLayout for CS shader group, with debugging controls
|
||||
{
|
||||
QLayout *oldLayout = ui->csShaderGroup->layout();
|
||||
|
||||
QObjectList childs = ui->csShaderGroup->children();
|
||||
childs.removeOne((QObject *)oldLayout);
|
||||
|
||||
delete oldLayout;
|
||||
|
||||
FlowLayout *csShaderFlow = new FlowLayout(ui->csShaderGroup, -1, 3, 3);
|
||||
|
||||
for(QObject *o : childs)
|
||||
csShaderFlow->addWidget(qobject_cast<QWidget *>(o));
|
||||
|
||||
ui->csShaderGroup->setLayout(csShaderFlow);
|
||||
}
|
||||
|
||||
for(QToolButton *b : viewButtons)
|
||||
QObject::connect(b, &QToolButton::clicked, this, &D3D12PipelineStateViewer::shaderView_clicked);
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user