refactor(rendering): formalize pipeline selection and engine asset discovery
This commit is contained in:
@@ -11,7 +11,8 @@ namespace ProjectGraphicsSettings {
|
||||
inline ProjectFileUtils::GraphicsSettingsDescriptor BuildDescriptor(
|
||||
const ::XCEngine::Rendering::GraphicsSettingsState& state) {
|
||||
ProjectFileUtils::GraphicsSettingsDescriptor descriptor;
|
||||
const auto nativeDescriptor = state.GetRenderPipelineAssetDescriptor();
|
||||
const auto nativeDescriptor =
|
||||
state.GetConfiguredRenderPipelineAssetDescriptor();
|
||||
if (nativeDescriptor.IsValid()) {
|
||||
descriptor.renderPipelineAssetAssembly = nativeDescriptor.assemblyName;
|
||||
descriptor.renderPipelineAssetNamespace =
|
||||
@@ -33,7 +34,7 @@ inline bool SaveSelection(
|
||||
inline void ApplySelection(
|
||||
const std::string& projectRoot,
|
||||
::XCEngine::Rendering::GraphicsSettingsState& state) {
|
||||
state.ClearRenderPipelineAssetDescriptor();
|
||||
state.ClearConfiguredRenderPipelineAssetDescriptor();
|
||||
|
||||
if (projectRoot.empty()) {
|
||||
return;
|
||||
@@ -53,7 +54,7 @@ inline void ApplySelection(
|
||||
savedDescriptor->renderPipelineAssetNamespace;
|
||||
nativeDescriptor.className = savedDescriptor->renderPipelineAssetClass;
|
||||
if (nativeDescriptor.IsValid()) {
|
||||
state.SetRenderPipelineAssetDescriptor(nativeDescriptor);
|
||||
state.SetConfiguredRenderPipelineAssetDescriptor(nativeDescriptor);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user