| 1383 | } |
| 1384 | |
| 1385 | void DescriptorViewer::ViewDescriptorStore(ResourceId id) |
| 1386 | { |
| 1387 | DescriptorStoreDescription *desc = m_Ctx.GetDescriptorStore(id); |
| 1388 | |
| 1389 | if(!desc) |
| 1390 | { |
| 1391 | qCritical() << "Invalid ID passed to ViewDescriptorStore"; |
| 1392 | return; |
| 1393 | } |
| 1394 | |
| 1395 | m_DescriptorStore = *desc; |
| 1396 | |
| 1397 | setWindowTitle(tr("%1 contents").arg(m_Ctx.GetResourceName(m_DescriptorStore.resourceId))); |
| 1398 | |
| 1399 | ui->pipeLabel->setText( |
| 1400 | tr("The pipeline state viewer shows the current bindings in an easier format.")); |
| 1401 | |
| 1402 | // refresh contents for the descriptor store |
| 1403 | OnEventChanged(m_Ctx.CurEvent()); |
| 1404 | } |
| 1405 | |
| 1406 | void DescriptorViewer::ViewDescriptors(const rdcarray<Descriptor> &descriptors, |
| 1407 | const rdcarray<SamplerDescriptor> &samplerDescriptors) |