Skip to content

Conversation

alex-vazquez
Copy link
Contributor

Purpose of this PR

https://jira.unity3d.com/browse/XPIPELINE-264

Moving all Debug Panel framework to Core in order to be able to implement the Volumes Panel on URP.


Testing status

Testing the URP debug panels work in the same way


Comments to reviewers

Simply doing a templated class with common functinality for URP and HDRP and move all the interfaces to Core.

@github-actions
Copy link

Hi! This comment will help you figure out which jobs to run before merging your PR. The suggestions are dynamic based on what files you have changed.
Link to Yamato: https://yamato.cds.internal.unity3d.com/jobs/902-Graphics
Search for your PR branch using the sidebar on the left, then add the following segment(s) to the end of the URL (you may need multiple tabs depending on how many packages you change)

URP
/.yamato%252Fall-urp.yml%2523PR_URP_trunk
With changes to URP packages, you should also run
/.yamato%252Fall-lightmapper.yml%2523PR_LightMapper_trunk

SRP Core
You could run ABV on your branch before merging your PR, but it will start A LOT of jobs. Please be responsible about it and run it only when you feel the PR is ready:
/.yamato%252F_abv.yml%2523all_project_ci_trunk
Be aware that any modifications to the Core package impacts everyone in the Graphics repo so please discuss the PR with your lead.

Depending on the scope of your PR, you may need to run more jobs than what has been suggested. Please speak to your lead or a Graphics SDET (#devs-graphics-automation) if you are unsure.

@RSlysz RSlysz requested review from a team and removed request for RSlysz September 20, 2021 09:15
Copy link
Contributor

@RSlysz RSlysz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test

@RSlysz RSlysz self-requested a review September 20, 2021 09:16
@alex-vazquez alex-vazquez requested review from a team and RSlysz and removed request for a team, RSlysz and fredericv-unity3d September 20, 2021 09:22
Copy link
Contributor

@RSlysz RSlysz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alex-vazquez alex-vazquez changed the title Srp workflows/debug panel system to core Srp workflows - Debug panel system to core Sep 20, 2021
Copy link
Contributor

@fredericv-unity3d fredericv-unity3d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not want to block the PR but there are somethings that can be improved on the framework itself.

namespace UnityEngine.Rendering
{
/// <summary>
/// Templated class for <see cref="IDebugDisplaySettings"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment should describe how to use the class. Like: "Subclass this to benefit for commonly used features regarding IDebugDisplaySettings"

{
protected readonly HashSet<IDebugDisplaySettingsData> m_Settings = new HashSet<IDebugDisplaySettingsData>();

private static readonly Lazy<T> s_Instance = new Lazy<T>(() =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to clear the data when entering or exiting playmode?

Note: When domain reload is not performed, the C# statics are not cleared and can contain invalid values.

namespace UnityEngine.Rendering.Universal
namespace UnityEngine.Rendering
{
public abstract class DebugDisplaySettingsPanel : IDebugDisplaySettingsPanelDisposable
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The class is disposable, although it can still be used while disposed. Is it intended?

@alex-vazquez alex-vazquez requested a review from a team September 20, 2021 10:32
@alex-vazquez
Copy link
Contributor Author

@Unity-Technologies/gfx-qa-urp Please do a smoke test to the Rendering Debugger in

  • Standalone build.
  • Editor.

Copy link
Contributor

@martint-unity martint-unity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, need QA to verify that everything works the same way before and after this change.

@alex-vazquez alex-vazquez marked this pull request as ready for review September 21, 2021 09:32
@alex-vazquez alex-vazquez requested a review from a team as a code owner September 21, 2021 09:32
@erikabar erikabar self-requested a review September 21, 2021 14:40
Copy link
Contributor

@erikabar erikabar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

everything is working the same way as it was before the changes. there are some issues unrelated to this PR that I will report

@alex-vazquez alex-vazquez merged commit 05eb3c8 into master Sep 28, 2021
@alex-vazquez alex-vazquez deleted the srp-workflows/debug-panel-system-to-core branch September 28, 2021 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants