Remove Shader compiler tab from Asset Processor (#6486)
* Remove Shader compiler tab from Asset Processor Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com> * Remove more references to shader compiler Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com>
This commit is contained in:
@@ -12,8 +12,6 @@
|
||||
#include "native/resourcecompiler/rccontroller.h"
|
||||
#include "native/FileServer/fileServer.h"
|
||||
#include "native/AssetManager/assetScanner.h"
|
||||
#include "native/shadercompiler/shadercompilerManager.h"
|
||||
#include "native/shadercompiler/shadercompilerModel.h"
|
||||
|
||||
#include <QApplication>
|
||||
#include <QDialogButtonBox>
|
||||
@@ -55,7 +53,7 @@ namespace
|
||||
{
|
||||
moduleFileInfo.setFile(executableDirectory);
|
||||
}
|
||||
|
||||
|
||||
QDir binaryDir = moduleFileInfo.absoluteDir();
|
||||
// strip extension
|
||||
QString applicationBase = moduleFileInfo.completeBaseName();
|
||||
@@ -70,7 +68,7 @@ namespace
|
||||
binaryDir.remove(tempFile);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -145,8 +143,6 @@ void GUIApplicationManager::Destroy()
|
||||
|
||||
DestroyIniConfiguration();
|
||||
DestroyFileServer();
|
||||
DestroyShaderCompilerManager();
|
||||
DestroyShaderCompilerModel();
|
||||
}
|
||||
|
||||
|
||||
@@ -192,7 +188,7 @@ bool GUIApplicationManager::Run()
|
||||
wrapper->enableSaveRestoreGeometry(GetOrganizationName(), GetApplicationName(), "MainWindow", restoreOnFirstShow);
|
||||
|
||||
AzQtComponents::StyleManager::setStyleSheet(m_mainWindow, QStringLiteral("style:AssetProcessor.qss"));
|
||||
|
||||
|
||||
auto refreshStyleSheets = [styleManager]()
|
||||
{
|
||||
styleManager->Refresh();
|
||||
@@ -334,7 +330,7 @@ bool GUIApplicationManager::Run()
|
||||
m_duringStartup = false;
|
||||
|
||||
int resultCode = qApp->exec(); // this blocks until the last window is closed.
|
||||
|
||||
|
||||
if(!InitiatedShutdown())
|
||||
{
|
||||
// if we are here it implies that AP did not stop the Qt event loop and is shutting down prematurely
|
||||
@@ -427,7 +423,7 @@ bool GUIApplicationManager::OnError(const char* /*window*/, const char* message)
|
||||
return true;
|
||||
}
|
||||
|
||||
// If we're the main thread, then consider showing the message box directly.
|
||||
// If we're the main thread, then consider showing the message box directly.
|
||||
// note that all other threads will PAUSE if they emit a message while the main thread is showing this box
|
||||
// due to the way the trace system EBUS is mutex-protected.
|
||||
Qt::ConnectionType connection = Qt::DirectConnection;
|
||||
@@ -470,7 +466,7 @@ bool GUIApplicationManager::Activate()
|
||||
AssetUtilities::ComputeProjectCacheRoot(projectCacheRoot);
|
||||
m_localUserSettings.Load(projectCacheRoot.filePath("AssetProcessorUserSettings.xml").toUtf8().data(), context);
|
||||
m_localUserSettings.Activate(AZ::UserSettings::CT_LOCAL);
|
||||
|
||||
|
||||
InitIniConfiguration();
|
||||
InitFileServer();
|
||||
|
||||
@@ -479,9 +475,6 @@ bool GUIApplicationManager::Activate()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
InitShaderCompilerModel();
|
||||
InitShaderCompilerManager();
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -606,7 +599,7 @@ void GUIApplicationManager::InitConnectionManager()
|
||||
QObject::connect(m_fileServer, SIGNAL(AddRenameRequest(unsigned int, bool)), m_connectionManager, SLOT(AddRenameRequest(unsigned int, bool)));
|
||||
QObject::connect(m_fileServer, SIGNAL(AddFindFileNamesRequest(unsigned int, bool)), m_connectionManager, SLOT(AddFindFileNamesRequest(unsigned int, bool)));
|
||||
QObject::connect(m_fileServer, SIGNAL(UpdateConnectionMetrics()), m_connectionManager, SLOT(UpdateConnectionMetrics()));
|
||||
|
||||
|
||||
m_connectionManager->RegisterService(ShowAssetProcessorRequest::MessageType,
|
||||
std::bind([this](unsigned int /*connId*/, unsigned int /*type*/, unsigned int /*serial*/, QByteArray /*payload*/)
|
||||
{
|
||||
@@ -661,40 +654,6 @@ void GUIApplicationManager::DestroyFileServer()
|
||||
}
|
||||
}
|
||||
|
||||
void GUIApplicationManager::InitShaderCompilerManager()
|
||||
{
|
||||
m_shaderCompilerManager = new ShaderCompilerManager();
|
||||
|
||||
//Shader compiler stuff
|
||||
m_connectionManager->RegisterService(AssetUtilities::ComputeCRC32Lowercase("ShaderCompilerProxyRequest"), std::bind(&ShaderCompilerManager::process, m_shaderCompilerManager, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4));
|
||||
QObject::connect(m_shaderCompilerManager, SIGNAL(sendErrorMessageFromShaderJob(QString, QString, QString, QString)), m_shaderCompilerModel, SLOT(addShaderErrorInfoEntry(QString, QString, QString, QString)));
|
||||
|
||||
|
||||
}
|
||||
|
||||
void GUIApplicationManager::DestroyShaderCompilerManager()
|
||||
{
|
||||
if (m_shaderCompilerManager)
|
||||
{
|
||||
delete m_shaderCompilerManager;
|
||||
m_shaderCompilerManager = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
void GUIApplicationManager::InitShaderCompilerModel()
|
||||
{
|
||||
m_shaderCompilerModel = new ShaderCompilerModel();
|
||||
}
|
||||
|
||||
void GUIApplicationManager::DestroyShaderCompilerModel()
|
||||
{
|
||||
if (m_shaderCompilerModel)
|
||||
{
|
||||
delete m_shaderCompilerModel;
|
||||
m_shaderCompilerModel = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
IniConfiguration* GUIApplicationManager::GetIniConfiguration() const
|
||||
{
|
||||
return m_iniConfiguration;
|
||||
@@ -704,14 +663,6 @@ FileServer* GUIApplicationManager::GetFileServer() const
|
||||
{
|
||||
return m_fileServer;
|
||||
}
|
||||
ShaderCompilerManager* GUIApplicationManager::GetShaderCompilerManager() const
|
||||
{
|
||||
return m_shaderCompilerManager;
|
||||
}
|
||||
ShaderCompilerModel* GUIApplicationManager::GetShaderCompilerModel() const
|
||||
{
|
||||
return m_shaderCompilerModel;
|
||||
}
|
||||
|
||||
void GUIApplicationManager::ShowTrayIconErrorMessage(QString msg)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user