Skip to content

Conversation

victorsclui
Copy link
Contributor

Purpose of this PR

In the "Set Final Target" render pass, sometimes it is necessary to copy the depth buffer. However we are currently calling RenderGraphBuilder.ReadTexture even if we are not coping the depth buffer. This PR is a tiny change that avoids unnecessary RenderGraphBuilder.ReadTexture in the "Set Final Target" pass.


Testing status

Yamato Nightly HDRP test all green (except HDRP on OSX_Metal_playmode_cache_mono_Linear which is red anyways).

https://yamato.cds.internal.unity3d.com/jobs/902-Graphics/tree/HDRP%252Ffinal-target-pass-avoid-depth-texture-read

…ta copying) inside the "Set Final Target" render pass.
Copy link
Contributor

@sebastienlagarde sebastienlagarde left a comment

Choose a reason for hiding this comment

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

Please add a changelog

@victorsclui
Copy link
Contributor Author

Changelog added

@victorsclui victorsclui closed this Mar 2, 2021
@victorsclui victorsclui reopened this Mar 2, 2021
@victorsclui victorsclui marked this pull request as ready for review March 2, 2021 11:29
@victorsclui victorsclui merged commit 3ffbb3e into master Mar 2, 2021
@victorsclui victorsclui deleted the HDRP/final-target-pass-avoid-depth-texture-read branch March 2, 2021 22:50
sebastienlagarde added a commit that referenced this pull request Mar 4, 2021
* [XPipeline]Fix crash on VolumeComponentWithQualityEditor when the current Pipeline is not HDRP #3643

* Fixed an issue in the planar reflection probe convolution. #3668

* Merge Hd/bugfix #3680

* Fix keyword backport (#3688)

* Fix keyword backport

* reenable test

* [HDRP] Merge Hd/bugfix #3687

* Making the FrameSettingsAttribute field more robust. Using it in other places to avoid caching (#3700)

the Obsoletes. Adding robustness in map query.

* Avoid unnecessary RenderGraphBuilder.ReadTexture in the "Set Final Target" pass. #3707

* Update CHANGELOG.md

* update double sided normal

* Updated distortion description and distortion blur default value (#3721)

Co-authored-by: alex-vazquez <76204843+alex-vazquez@users.noreply.github.com>
Co-authored-by: anisunity <42026998+anisunity@users.noreply.github.com>
Co-authored-by: Adrien de Tocqueville <adrien.tocqueville@unity3d.com>
Co-authored-by: Kleber Garcia <kleber.garcia@unity3d.com>
Co-authored-by: victorsclui <34995714+victorsclui@users.noreply.github.com>
Co-authored-by: Lewis Jordan <lewis.jordan@hotmail.co.uk>
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.

3 participants