mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-14 05:50:51 +00:00
Fix formatting of blend factor in pipeline state
This commit is contained in:
@@ -1681,10 +1681,10 @@ void D3D11PipelineStateViewer::setState()
|
||||
QFormatStr("%1").arg(state.m_OM.m_BlendState.SampleMask, 8, 16, QLatin1Char('0')).toUpper());
|
||||
|
||||
ui->blendFactor->setText(QFormatStr("%1, %2, %3, %4")
|
||||
.arg(state.m_OM.m_BlendState.BlendFactor[0], 2)
|
||||
.arg(state.m_OM.m_BlendState.BlendFactor[1], 2)
|
||||
.arg(state.m_OM.m_BlendState.BlendFactor[2], 2)
|
||||
.arg(state.m_OM.m_BlendState.BlendFactor[3], 2));
|
||||
.arg(state.m_OM.m_BlendState.BlendFactor[0], 0, 'f', 2)
|
||||
.arg(state.m_OM.m_BlendState.BlendFactor[1], 0, 'f', 2)
|
||||
.arg(state.m_OM.m_BlendState.BlendFactor[2], 0, 'f', 2)
|
||||
.arg(state.m_OM.m_BlendState.BlendFactor[3], 0, 'f', 2));
|
||||
|
||||
ui->depthEnabled->setPixmap(state.m_OM.m_State.DepthEnable ? tick : cross);
|
||||
ui->depthFunc->setText(ToQStr(state.m_OM.m_State.DepthFunc));
|
||||
|
||||
@@ -1643,10 +1643,10 @@ void D3D12PipelineStateViewer::setState()
|
||||
ui->independentBlend->setPixmap(state.m_OM.m_BlendState.IndependentBlend ? tick : cross);
|
||||
|
||||
ui->blendFactor->setText(QFormatStr("%1, %2, %3, %4")
|
||||
.arg(state.m_OM.m_BlendState.BlendFactor[0], 2)
|
||||
.arg(state.m_OM.m_BlendState.BlendFactor[1], 2)
|
||||
.arg(state.m_OM.m_BlendState.BlendFactor[2], 2)
|
||||
.arg(state.m_OM.m_BlendState.BlendFactor[3], 2));
|
||||
.arg(state.m_OM.m_BlendState.BlendFactor[0], 0, 'f', 2)
|
||||
.arg(state.m_OM.m_BlendState.BlendFactor[1], 0, 'f', 2)
|
||||
.arg(state.m_OM.m_BlendState.BlendFactor[2], 0, 'f', 2)
|
||||
.arg(state.m_OM.m_BlendState.BlendFactor[3], 0, 'f', 2));
|
||||
|
||||
ui->depthEnabled->setPixmap(state.m_OM.m_State.DepthEnable ? tick : cross);
|
||||
ui->depthFunc->setText(ToQStr(state.m_OM.m_State.DepthFunc));
|
||||
|
||||
@@ -1887,10 +1887,10 @@ void GLPipelineStateViewer::setState()
|
||||
ui->blends->verticalScrollBar()->setValue(vs);
|
||||
|
||||
ui->blendFactor->setText(QFormatStr("%1, %2, %3, %4")
|
||||
.arg(state.m_FB.m_Blending.BlendFactor[0], 2)
|
||||
.arg(state.m_FB.m_Blending.BlendFactor[1], 2)
|
||||
.arg(state.m_FB.m_Blending.BlendFactor[2], 2)
|
||||
.arg(state.m_FB.m_Blending.BlendFactor[3], 2));
|
||||
.arg(state.m_FB.m_Blending.BlendFactor[0], 0, 'f', 2)
|
||||
.arg(state.m_FB.m_Blending.BlendFactor[1], 0, 'f', 2)
|
||||
.arg(state.m_FB.m_Blending.BlendFactor[2], 0, 'f', 2)
|
||||
.arg(state.m_FB.m_Blending.BlendFactor[3], 0, 'f', 2));
|
||||
|
||||
ui->depthEnabled->setPixmap(state.m_DepthState.DepthEnable ? tick : cross);
|
||||
ui->depthFunc->setText(ToQStr(state.m_DepthState.DepthFunc));
|
||||
|
||||
@@ -1902,10 +1902,10 @@ void VulkanPipelineStateViewer::setState()
|
||||
ui->blends->verticalScrollBar()->setValue(vs);
|
||||
|
||||
ui->blendFactor->setText(QFormatStr("%1, %2, %3, %4")
|
||||
.arg(state.CB.blendConst[0], 2)
|
||||
.arg(state.CB.blendConst[1], 2)
|
||||
.arg(state.CB.blendConst[2], 2)
|
||||
.arg(state.CB.blendConst[3], 2));
|
||||
.arg(state.CB.blendConst[0], 0, 'f', 2)
|
||||
.arg(state.CB.blendConst[1], 0, 'f', 2)
|
||||
.arg(state.CB.blendConst[2], 0, 'f', 2)
|
||||
.arg(state.CB.blendConst[3], 0, 'f', 2));
|
||||
ui->logicOp->setText(state.CB.logicOpEnable ? ToQStr(state.CB.logic) : lit("-"));
|
||||
ui->alphaToOne->setPixmap(state.CB.alphaToOneEnable ? tick : cross);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user