mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Add a descriptor viewer for showing all of a heap, root sig, or set
This commit is contained in:
@@ -262,7 +262,8 @@ void ResourceInspector::Inspect(ResourceId id)
|
||||
|
||||
m_Resource = id;
|
||||
|
||||
ui->viewContents->setVisible(m_Ctx.GetTexture(id) || m_Ctx.GetBuffer(id));
|
||||
ui->viewContents->setVisible(m_Ctx.GetTexture(id) || m_Ctx.GetBuffer(id) ||
|
||||
m_Ctx.GetDescriptorStore(id));
|
||||
|
||||
m_Entries.clear();
|
||||
|
||||
@@ -568,6 +569,7 @@ void ResourceInspector::on_viewContents_clicked()
|
||||
{
|
||||
TextureDescription *tex = m_Ctx.GetTexture(m_Resource);
|
||||
BufferDescription *buf = m_Ctx.GetBuffer(m_Resource);
|
||||
DescriptorStoreDescription *desc = m_Ctx.GetDescriptorStore(m_Resource);
|
||||
|
||||
if(tex)
|
||||
{
|
||||
@@ -592,6 +594,12 @@ void ResourceInspector::on_viewContents_clicked()
|
||||
|
||||
m_Ctx.AddDockWindow(viewer->Widget(), DockReference::AddTo, this);
|
||||
}
|
||||
else if(desc)
|
||||
{
|
||||
IDescriptorViewer *viewer = m_Ctx.ViewDescriptorStore(desc->resourceId);
|
||||
|
||||
m_Ctx.AddDockWindow(viewer->Widget(), DockReference::AddTo, this);
|
||||
}
|
||||
else if(!m_Entries.isEmpty())
|
||||
{
|
||||
ShaderEntryPoint entry = m_Entries[0];
|
||||
|
||||
Reference in New Issue
Block a user