Rasagar/Library/PackageCache/com.unity.render-pipelines.high-definition/Editor/SceneTemplates/HDRPBasicDxrScenePipeline.cs

24 lines
888 B
C#
Raw Normal View History

2024-08-26 13:07:20 -07:00
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;
}
}
}