//separated to add enum popup on default frame settings
        internal static CED.IDrawer InspectorInnerbox(bool withOverride = true) => CED.Group(
            CED.FoldoutGroup(renderingSettingsHeaderContent, Expandable.RenderingPasses, k_ExpandedState, FoldoutOption.Indent | FoldoutOption.Boxed,
                             CED.Group(206, (serialized, owner) => Drawer_SectionRenderingSettings(serialized, owner, withOverride))
                             ),
            CED.FoldoutGroup(lightSettingsHeaderContent, Expandable.LightingSettings, k_ExpandedState, FoldoutOption.Indent | FoldoutOption.Boxed,
                             CED.Group(206, (serialized, owner) => Drawer_SectionLightingSettings(serialized, owner, withOverride))
                             ),
            CED.FoldoutGroup(asyncComputeSettingsHeaderContent, Expandable.AsynComputeSettings, k_ExpandedState, FoldoutOption.Indent | FoldoutOption.Boxed,
                             CED.Group(206, (serialized, owner) => Drawer_SectionAsyncComputeSettings(serialized, owner, withOverride))
                             ),
            CED.FoldoutGroup(lightLoopSettingsHeaderContent, Expandable.LightLoop, k_ExpandedState, FoldoutOption.Indent | FoldoutOption.Boxed,
                             CED.Group(206, (serialized, owner) => Drawer_SectionLightLoopSettings(serialized, owner, withOverride))
                             ),
            CED.Group((serialized, owner) =>
        {
            HDRenderPipelineAsset HDRPAsset = GetHDRPAssetFor(owner);
            if (HDRPAsset == null || HDRPAsset.Equals(null))
            {
                return;
            }

            RenderPipelineSettings hdrpSettings = HDRPAsset.currentPlatformRenderPipelineSettings;
            if (hdrpSettings.supportRayTracing)
            {
                bool rtEffectUseAsync = (serialized.IsEnabled(FrameSettingsField.SSRAsync) ?? false) || (serialized.IsEnabled(FrameSettingsField.SSAOAsync) ?? false)
                                        //|| (serialized.IsEnabled(FrameSettingsField.ContactShadowsAsync) ?? false) // Contact shadow async is not visible in the UI for now and defaults to true.
                ;
                if (rtEffectUseAsync)
                {
                    EditorGUILayout.HelpBox("Asynchronous execution of Raytracing effects is not supported. Asynchronous Execution will be forced to false for them", MessageType.Warning);
                }
            }
        }));
Example #2
0
        static void FillScene(Scene scene)
        {
            HDRenderPipelineAsset hdrpAsset = HDRenderPipeline.defaultAsset;

            if (hdrpAsset == null || hdrpAsset.Equals(null))
            {
                return;
            }

            if (hdrpAsset.renderPipelineEditorResources == null)
            {
                Debug.LogError("Missing HDRenderPipelineEditorResources in HDRenderPipelineAsset");
                return;
            }

            GameObject root = GameObject.Instantiate(HDProjectSettings.defaultScenePrefab);

            SceneManager.MoveGameObjectToScene(root, scene);
            root.transform.DetachChildren();
            GameObject.DestroyImmediate(root);
        }