Add support for VK_KHR_maintenance5

This commit is contained in:
Tristan Ritchie
2025-03-19 15:43:08 +00:00
committed by Baldur Karlsson
parent 2b01465c79
commit 2eade4650b
32 changed files with 898 additions and 212 deletions
@@ -1919,7 +1919,7 @@ void VulkanPipelineStateViewer::setState()
BufferDescription *buf = m_Ctx.GetBuffer(state.inputAssembly.indexBuffer.resourceId);
if(buf)
length = buf->length;
length = qMin(state.inputAssembly.indexBuffer.byteSize, buf->length);
RDTreeWidgetItem *node = new RDTreeWidgetItem(
{tr("Index"), state.inputAssembly.indexBuffer.resourceId, tr("Index"), lit("-"),
@@ -3503,7 +3503,7 @@ void VulkanPipelineStateViewer::exportHTML(QXmlStreamWriter &xml, const VKPipe::
if(ib)
{
name = m_Ctx.GetResourceName(ia.indexBuffer.resourceId);
length = ib->length;
length = qMin(ib->length, ia.indexBuffer.byteSize);
}
QString ifmt = lit("UNKNOWN");