Rasagar/Library/PackageCache/com.unity.render-pipelines.high-definition/Editor/SceneTemplates/HDRPBasicDxrScenePipeline.cs
2024-08-26 23:07:20 +03:00

24 lines
888 B
C#

using UnityEditor.SceneTemplate;
using UnityEngine.Rendering.HighDefinition;
using UnityEngine.SceneManagement;
namespace UnityEditor.Rendering.HighDefinition
{
class HDRPBasicDxrScenePipeline : ISceneTemplatePipeline
{
void ISceneTemplatePipeline.AfterTemplateInstantiation(SceneTemplateAsset sceneTemplateAsset, Scene scene, bool isAdditive, string sceneName)
{ }
void ISceneTemplatePipeline.BeforeTemplateInstantiation(SceneTemplateAsset sceneTemplateAsset, bool isAdditive, string sceneName)
{ }
bool ISceneTemplatePipeline.IsValidTemplateForInstantiation(SceneTemplateAsset sceneTemplateAsset)
{
var hdrpAsset = HDRenderPipeline.currentAsset;
if (hdrpAsset == null)
return false;
return hdrpAsset.currentPlatformRenderPipelineSettings.supportRayTracing;
}
}
}