diff --git a/qrenderdoc/Windows/PipelineState/D3D11PipelineStateViewer.cpp b/qrenderdoc/Windows/PipelineState/D3D11PipelineStateViewer.cpp
index 79b55356e..0d4052240 100644
--- a/qrenderdoc/Windows/PipelineState/D3D11PipelineStateViewer.cpp
+++ b/qrenderdoc/Windows/PipelineState/D3D11PipelineStateViewer.cpp
@@ -1900,9 +1900,20 @@ void D3D11PipelineStateViewer::setState()
ui->depthState->setText(ToQStr(state.outputMerger.depthStencilState.resourceId));
- ui->depthEnabled->setPixmap(state.outputMerger.depthStencilState.depthEnable ? tick : cross);
- ui->depthFunc->setText(ToQStr(state.outputMerger.depthStencilState.depthFunction));
- ui->depthWrite->setPixmap(state.outputMerger.depthStencilState.depthWrites ? tick : cross);
+ if(state.outputMerger.depthStencilState.depthEnable)
+ {
+ ui->depthEnabled->setPixmap(tick);
+ ui->depthFunc->setText(ToQStr(state.outputMerger.depthStencilState.depthFunction));
+ ui->depthWrite->setPixmap(state.outputMerger.depthStencilState.depthWrites ? tick : cross);
+ ui->depthWrite->setText(QString());
+ }
+ else
+ {
+ ui->depthEnabled->setPixmap(cross);
+ ui->depthFunc->setText(tr("Disabled"));
+ ui->depthWrite->setPixmap(QPixmap());
+ ui->depthWrite->setText(tr("Disabled"));
+ }
ui->stencilEnabled->setPixmap(state.outputMerger.depthStencilState.stencilEnable ? tick : cross);
m_Common.SetStencilLabelValue(
diff --git a/qrenderdoc/Windows/PipelineState/D3D11PipelineStateViewer.ui b/qrenderdoc/Windows/PipelineState/D3D11PipelineStateViewer.ui
index 90e5a9599..e057b2200 100644
--- a/qrenderdoc/Windows/PipelineState/D3D11PipelineStateViewer.ui
+++ b/qrenderdoc/Windows/PipelineState/D3D11PipelineStateViewer.ui
@@ -3585,6 +3585,11 @@
+
+
+ 12
+
+
:/cross.png
diff --git a/qrenderdoc/Windows/PipelineState/D3D12PipelineStateViewer.cpp b/qrenderdoc/Windows/PipelineState/D3D12PipelineStateViewer.cpp
index 87371090d..bc060f2b7 100644
--- a/qrenderdoc/Windows/PipelineState/D3D12PipelineStateViewer.cpp
+++ b/qrenderdoc/Windows/PipelineState/D3D12PipelineStateViewer.cpp
@@ -1950,9 +1950,20 @@ void D3D12PipelineStateViewer::setState()
.arg(state.outputMerger.blendState.blendFactor[2], 0, 'f', 2)
.arg(state.outputMerger.blendState.blendFactor[3], 0, 'f', 2));
- ui->depthEnabled->setPixmap(state.outputMerger.depthStencilState.depthEnable ? tick : cross);
- ui->depthFunc->setText(ToQStr(state.outputMerger.depthStencilState.depthFunction));
- ui->depthWrite->setPixmap(state.outputMerger.depthStencilState.depthWrites ? tick : cross);
+ if(state.outputMerger.depthStencilState.depthEnable)
+ {
+ ui->depthEnabled->setPixmap(tick);
+ ui->depthFunc->setText(ToQStr(state.outputMerger.depthStencilState.depthFunction));
+ ui->depthWrite->setPixmap(state.outputMerger.depthStencilState.depthWrites ? tick : cross);
+ ui->depthWrite->setText(QString());
+ }
+ else
+ {
+ ui->depthEnabled->setPixmap(cross);
+ ui->depthFunc->setText(tr("Disabled"));
+ ui->depthWrite->setPixmap(QPixmap());
+ ui->depthWrite->setText(tr("Disabled"));
+ }
if(state.outputMerger.depthStencilState.depthBoundsEnable)
{
diff --git a/qrenderdoc/Windows/PipelineState/D3D12PipelineStateViewer.ui b/qrenderdoc/Windows/PipelineState/D3D12PipelineStateViewer.ui
index df72d97ef..1dd9af1fb 100644
--- a/qrenderdoc/Windows/PipelineState/D3D12PipelineStateViewer.ui
+++ b/qrenderdoc/Windows/PipelineState/D3D12PipelineStateViewer.ui
@@ -3475,7 +3475,7 @@
0
- -
+
-
Bounds:
@@ -3485,7 +3485,7 @@
- -
+
-
@@ -3516,7 +3516,7 @@
- -
+
-
Func:
@@ -3557,6 +3557,11 @@
+
+
+ 12
+
+
:/cross.png
@@ -3568,7 +3573,7 @@
- -
+
-
diff --git a/qrenderdoc/Windows/PipelineState/GLPipelineStateViewer.cpp b/qrenderdoc/Windows/PipelineState/GLPipelineStateViewer.cpp
index 1ec9216d4..0e0aa2a49 100644
--- a/qrenderdoc/Windows/PipelineState/GLPipelineStateViewer.cpp
+++ b/qrenderdoc/Windows/PipelineState/GLPipelineStateViewer.cpp
@@ -2158,9 +2158,20 @@ void GLPipelineStateViewer::setState()
.arg(state.framebuffer.blendState.blendFactor[2], 0, 'f', 2)
.arg(state.framebuffer.blendState.blendFactor[3], 0, 'f', 2));
- ui->depthEnabled->setPixmap(state.depthState.depthEnable ? tick : cross);
- ui->depthFunc->setText(ToQStr(state.depthState.depthFunction));
- ui->depthWrite->setPixmap(state.depthState.depthWrites ? tick : cross);
+ if(state.depthState.depthEnable)
+ {
+ ui->depthEnabled->setPixmap(tick);
+ ui->depthFunc->setText(ToQStr(state.depthState.depthFunction));
+ ui->depthWrite->setPixmap(state.depthState.depthWrites ? tick : cross);
+ ui->depthWrite->setText(QString());
+ }
+ else
+ {
+ ui->depthEnabled->setPixmap(cross);
+ ui->depthFunc->setText(tr("Disabled"));
+ ui->depthWrite->setPixmap(QPixmap());
+ ui->depthWrite->setText(tr("Disabled"));
+ }
if(state.depthState.depthBounds)
{
diff --git a/qrenderdoc/Windows/PipelineState/GLPipelineStateViewer.ui b/qrenderdoc/Windows/PipelineState/GLPipelineStateViewer.ui
index b23ee1cc7..fa5a924c4 100644
--- a/qrenderdoc/Windows/PipelineState/GLPipelineStateViewer.ui
+++ b/qrenderdoc/Windows/PipelineState/GLPipelineStateViewer.ui
@@ -4114,7 +4114,7 @@
- -
+
-
Bounds:
@@ -4124,11 +4124,16 @@
- -
+
-
+
+
+ 12
+
+
:/cross.png
@@ -4155,6 +4160,11 @@
+
+
+ 12
+
+
:/cross.png
@@ -4166,7 +4176,7 @@
- -
+
-
Func:
@@ -4176,7 +4186,7 @@
- -
+
-
diff --git a/qrenderdoc/Windows/PipelineState/VulkanPipelineStateViewer.cpp b/qrenderdoc/Windows/PipelineState/VulkanPipelineStateViewer.cpp
index 72f6349d6..4c2b88360 100644
--- a/qrenderdoc/Windows/PipelineState/VulkanPipelineStateViewer.cpp
+++ b/qrenderdoc/Windows/PipelineState/VulkanPipelineStateViewer.cpp
@@ -2700,9 +2700,20 @@ void VulkanPipelineStateViewer::setState()
else
ui->logicOp->setText(lit("-"));
- ui->depthEnabled->setPixmap(state.depthStencil.depthTestEnable ? tick : cross);
- ui->depthFunc->setText(ToQStr(state.depthStencil.depthFunction));
- ui->depthWrite->setPixmap(state.depthStencil.depthWriteEnable ? tick : cross);
+ if(state.depthStencil.depthTestEnable)
+ {
+ ui->depthEnabled->setPixmap(tick);
+ ui->depthFunc->setText(ToQStr(state.depthStencil.depthFunction));
+ ui->depthWrite->setPixmap(state.depthStencil.depthWriteEnable ? tick : cross);
+ ui->depthWrite->setText(QString());
+ }
+ else
+ {
+ ui->depthEnabled->setPixmap(cross);
+ ui->depthFunc->setText(tr("Disabled"));
+ ui->depthWrite->setPixmap(QPixmap());
+ ui->depthWrite->setText(tr("Disabled"));
+ }
if(state.depthStencil.depthBoundsEnable)
{
diff --git a/qrenderdoc/Windows/PipelineState/VulkanPipelineStateViewer.ui b/qrenderdoc/Windows/PipelineState/VulkanPipelineStateViewer.ui
index 9bb34a369..0f90bf451 100644
--- a/qrenderdoc/Windows/PipelineState/VulkanPipelineStateViewer.ui
+++ b/qrenderdoc/Windows/PipelineState/VulkanPipelineStateViewer.ui
@@ -3455,7 +3455,7 @@
- -
+
-
Bounds:
@@ -3465,7 +3465,7 @@
- -
+
-
@@ -3501,6 +3501,11 @@
+
+
+ 12
+
+
:/cross.png
@@ -3512,7 +3517,7 @@
- -
+
-
Func:
@@ -3522,7 +3527,7 @@
- -
+
-