mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-04 22:01:07 +00:00
Fix off by one error in the slice range tooltip
This commit is contained in:
@@ -665,7 +665,7 @@ void D3D11PipelineStateViewer::setViewDetails(RDTreeWidgetItem *node, const D3D1
|
||||
text += tr("The texture has %1 array slices, the view covers slices %2-%3.\n")
|
||||
.arg(tex->arraysize)
|
||||
.arg(res.firstSlice)
|
||||
.arg(res.firstSlice + res.numSlices);
|
||||
.arg(res.firstSlice + res.numSlices - 1);
|
||||
|
||||
viewdetails = true;
|
||||
}
|
||||
|
||||
@@ -662,7 +662,7 @@ void D3D12PipelineStateViewer::setViewDetails(RDTreeWidgetItem *node, const D3D1
|
||||
text += tr("The texture has %1 array slices, the view covers slices %2-%3.\n")
|
||||
.arg(tex->arraysize)
|
||||
.arg(res.firstSlice)
|
||||
.arg(res.firstSlice + res.numSlices);
|
||||
.arg(res.firstSlice + res.numSlices - 1);
|
||||
|
||||
viewdetails = true;
|
||||
}
|
||||
|
||||
@@ -690,7 +690,7 @@ bool VulkanPipelineStateViewer::setViewDetails(RDTreeWidgetItem *node, const bin
|
||||
text += tr("The texture has %1 array slices, the view covers slices %2-%3.\n")
|
||||
.arg(tex->arraysize)
|
||||
.arg(view.firstSlice)
|
||||
.arg(view.firstSlice + view.numSlices);
|
||||
.arg(view.firstSlice + view.numSlices - 1);
|
||||
|
||||
viewdetails = true;
|
||||
}
|
||||
@@ -705,7 +705,7 @@ bool VulkanPipelineStateViewer::setViewDetails(RDTreeWidgetItem *node, const bin
|
||||
text += tr("The texture has %1 3D slices, the view covers slices %2-%3.\n")
|
||||
.arg(tex->depth)
|
||||
.arg(view.firstSlice)
|
||||
.arg(view.firstSlice + view.numSlices);
|
||||
.arg(view.firstSlice + view.numSlices - 1);
|
||||
|
||||
viewdetails = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user