Implement GL pipeline state viewer for Qt

This commit is contained in:
baldurk
2017-01-24 19:02:29 +00:00
parent a200ed8455
commit d0aec2197d
7 changed files with 7827 additions and 25 deletions
@@ -1563,8 +1563,9 @@ void VulkanPipelineStateViewer::setState()
length = buf->length;
}
QTreeWidgetItem *node = makeTreeNode({"Index", name, "Index", (qulonglong)state.IA.ibuffer.offs,
draw->indexByteWidth, (qulonglong)length, ""});
QTreeWidgetItem *node =
makeTreeNode({"Index", name, "Index", (qulonglong)state.IA.ibuffer.offs,
draw != NULL ? draw->indexByteWidth : 0, (qulonglong)length, ""});
ui->viBuffers->setHoverIcons(node, action, action_hover);