mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 06:56:40 +00:00
Ensure that constant buffer views are grouped together in docking
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "ConstantBufferPreviewer.h"
|
||||
#include <QFontDatabase>
|
||||
#include "3rdparty/toolwindowmanager/ToolWindowManager.h"
|
||||
#include "ui_ConstantBufferPreviewer.h"
|
||||
|
||||
QList<ConstantBufferPreviewer *> ConstantBufferPreviewer::m_Previews;
|
||||
@@ -78,6 +79,17 @@ ConstantBufferPreviewer *ConstantBufferPreviewer::has(ShaderStage stage, uint32_
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ConstantBufferPreviewer *ConstantBufferPreviewer::getOne()
|
||||
{
|
||||
for(ConstantBufferPreviewer *c : m_Previews)
|
||||
{
|
||||
if(ToolWindowManager::managerOf(c))
|
||||
return c;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void ConstantBufferPreviewer::OnLogfileLoaded()
|
||||
{
|
||||
OnLogfileClosed();
|
||||
|
||||
Reference in New Issue
Block a user