Commit Graph

77 Commits

Author SHA1 Message Date
jason hoerner
b19bb6be2f UE5_MAIN: Multi-view-family scene renderer refactor, part 1. Major structural change to allow scene renderer to accept multiple view families, with otherwise negligible changes in internal behavior.
* Added "BeginRenderingViewFamilies" render interface call that accepts multiple view families.  Original "BeginRenderingViewFamily" falls through to this.
* FSceneRenderer modified to include an array of view families, plus an active view family and the Views for that family.
* Swap ViewFamily to ActiveViewFamily.
* Swap Views array from TArray<FViewInfo> to TArrayView<FViewInfo>, including where the Views array is passed to functions.
* FSceneRenderer iterates over the view families, rendering each one at a time, as separate render graph executions.
* Some frame setup and cleanup logic outside the render graph runs once.
* Moved stateful FSceneRenderer members to FViewFamilyInfo, to preserve existing one-at-a-time view family rendering behavior.
* Display Cluster (Virtual Production) uses new API.

Next step will push everything into one render graph, which requires handling per-family external resources and cleaning up singletons (like FSceneTextures and FSceneTexturesConfig).  Once that's done, we'll be in a position to further interleave rendering, properly handle once per frame work, and solve artifacts in various systems.

#jira none
#rnx
#rb zach.bethel
#preflight 625df821b21bb49791d377c9

[CL 19813996 by jason hoerner in ue5-main branch]
2022-04-19 14:45:26 -04:00
Florin Pascu
b911eca027 Remove Opacity Pass MobileSceneCapture
Remove MobileSceneCapture, move everything to the shared SceneCaptureRendering file
Remove MobileSceneCapture.usf
#jira UE-118450
#rb Dmitriy.Dyomin, Jack.Porter
#preflight 60f56cd41d824300016bdb7a

[CL 16882854 by Florin Pascu in ue5-main branch]
2021-07-19 09:11:02 -04:00
Dmitriy Dyomin
676a32f229 Fixed mobile specific issues when project has GPUScene enabled
[CL 16638001 by Dmitriy Dyomin in ue5-main branch]
2021-06-11 03:34:04 -04:00
dmitriy dyomin
f9a82fbcb5 Properly setup SceneTextures for mobile base pass
#rb none

#ROBOMERGE-OWNER: dmitriy.dyomin
#ROBOMERGE-AUTHOR: dmitriy.dyomin
#ROBOMERGE-SOURCE: CL 15913788 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v786-15839533)
#ROBOMERGE-CONFLICT from-shelf

[CL 15913887 by dmitriy dyomin in ue5-main branch]
2021-04-05 03:36:51 -04:00
dmitriy dyomin
8e508176a9 Fixed: auto-instancing on mobile
#ROBOMERGE-OWNER: dmitriy.dyomin
#ROBOMERGE-AUTHOR: dmitriy.dyomin
#ROBOMERGE-SOURCE: CL 15757659 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v783-15756269)
#ROBOMERGE-CONFLICT from-shelf

[CL 15772431 by dmitriy dyomin in ue5-main branch]
2021-03-22 22:21:46 -04:00
Wei Liu
1711d3aece 1.Convert mobile base passes to single pass to avoid leveraging on the RDG pass merge which could let the resource transitions occurred inside a pass.
2.Make pixel projected reflection using last frame scenecolor and scenedepth to avoid to split mobile base pass and translucency pass.
3.Support GTAO and PPR for mobile deferred renderer.

#jira none

#rb Dmitriy.Dyomin, Jack.Porter, Mi.Wang

[CL 15651055 by Wei Liu in ue5-main branch]
2021-03-09 00:23:43 -04:00
Wei Liu
4822dcb445 Fix a bug of mobile deferred rendering in RDG.
#jira none

#rb Dmitriy.Dyomin, Jack.Porter, Mi.Wang

[CL 15133843 by Wei Liu in ue5-main branch]
2021-01-18 22:46:06 -04:00
graham wihlidal
61244769d1 Decoupled more of the GPU scene instance culling work
==
* Added instance offset and count to primitive data, along with GetPrimitiveUniformShaderParameters() diffs
* Remaining FInstanceCullingManager& hooks through functions
* Various todo comments to address later
* Calls to (disabled for now) BuildRenderCommands()
* Mutability of FViewInfo in some spots
* Additional instance culling draw params in a few places
* EVertexInputStreamType cleanup
* UseVirtualShadowMaps() feature capability helper function

#authors ola.olsson, graham.wihlidal
#rb graham.wihlidal
#fyi brian.karis, rune.stubbe

[CL 15092149 by graham wihlidal in ue5-main branch]
2021-01-14 15:46:32 -04:00
zach bethel
c6cb1e82be Deprecated and gutted FSceneRenderTargets. Moved all textures over to FSceneTextures. Refactored the renderer to use RDG textures from FSceneTextures instead.
#rb arne.schober, luke.thatcher, christopher.waters, kenzo.terelst

[CL 15040082 by zach bethel in ue5-main branch]
2021-01-11 14:49:16 -04:00
zach bethel
050410cb10 Refactor of mobile pass / view uniform buffers to use static bindings.
Pass / view uniform buffers are no longer bound through mesh draw commands. Instead, they are bound using static bindings on the RDG pass. This is necessary because pass uniform buffers contain RDG resources, which need to be declared to RDG.

#rb christopher.waters, Dmitriy.Dyomin

[CL 14899861 by zach bethel in ue5-main branch]
2020-12-10 14:45:57 -04:00
Wei Liu
8a415ffcee Use explict begin/end pass for RDG mobile base pass to handle sub-pass properly.
#jira none

#rb Zachary.Bethel, Dmitriy.Dyomin, Jack.Porter, Mi.Wang

[CL 14886949 by Wei Liu in ue5-main branch]
2020-12-09 05:27:17 -04:00
Wei Liu
0dac6d9fd6 Port mobile base pass to RDG.
#jira UE-91343

#rb Zachary.Bethel, Dmitriy.Dyomin, Jack.Porter, Mi.Wang

[CL 14855338 by Wei Liu in ue5-main branch]
2020-12-04 12:07:09 -04:00
Marc Audy
a7f9391231 Merge UE5/Release-Engine-Staging @ 14811410 to UE5/Main
This represents UE4/Main @ 14768117

For ReleaseObjectVersion.h
#lockdown Marcus.Wassmer

[CL 14811440 by Marc Audy in ue5-main branch]
2020-11-24 18:42:39 -04:00
zach bethel
e4f467569d Removed scene render target context snapshot system.
#rb arne.schober

[CL 14615156 by zach bethel in ue5-main branch]
2020-10-29 16:32:16 -04:00
Marcus Wassmer
3b81cf8201 Merging using //UE5/Main_to_//UE5/Release-Engine-Staging @14384769
autoresolved files
#rb none

[CL 14384911 by Marcus Wassmer in ue5-main branch]
2020-09-24 00:43:27 -04:00
Marc Audy
7379fa99c5 Merging //UE5/Release-Engine-Staging to Main (//UE5/Main) @ 14229157
[CL 14233282 by Marc Audy in ue5-main branch]
2020-09-01 14:07:48 -04:00
Marc Audy
11f5b21210 Merging //UE5/Release-Engine-Staging @ 13752110 to Main (//UE5/Main)
#rnx

[CL 13753156 by Marc Audy in ue5-main branch]
2020-06-23 18:40:00 -04:00
Rolando Caloca
5b82f15def Copying //UE4/Dev-RenderPlat-Staging@11388153 to //UE4/Main
#rb none
#rnx

[CL 11388545 by Rolando Caloca in Main branch]
2020-02-12 13:27:19 -05:00
Josh Adams
aa9705149b Copying Private-LoadTimes-4.24 stream to Main. Biggest changes are in Materials/Shader memory freezing.
#rb none

[CL 11282608 by Josh Adams in Main branch]
2020-02-06 13:13:41 -05:00
Juan Canada
2ecf4f9708 Merging //UE4/Dev-Main@10877709 to Dev-RenderPlat-Staging(//UE4/Dev-Rendering)
#rnx
#rb none

[CL 10895568 by Juan Canada in Dev-RenderPlat-Staging branch]
2020-01-07 13:45:01 -05:00
ryan durand
0f0464a30e Updating copyright for Engine Runtime.
#rnx
#rb none


#ROBOMERGE-OWNER: ryan.durand
#ROBOMERGE-AUTHOR: ryan.durand
#ROBOMERGE-SOURCE: CL 10869210 via CL 10869511 via CL 10869900
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870549 by ryan durand in Main branch]
2019-12-26 14:45:42 -05:00
dmitriy dyomin
cd40e9ce2a Fixed: scene capture on mobile with MSAA enabled
#rb none


#ROBOMERGE-SOURCE: CL 7973128 via CL 7974439
#ROBOMERGE-BOT: (v396-7974030)

[CL 7974596 by dmitriy dyomin in Main branch]
2019-08-13 09:27:32 -04:00
Rolando Caloca
aa0d2303d6 Copying //UE4/Dev-Rendering to Dev-Main (//UE4/Dev-Main) @ 6944469
#rb none
#rnx

[CL 6944849 by Rolando Caloca in Main branch]
2019-06-11 18:27:07 -04:00
dmitriy dyomin
da9c91329e Fixed case where enabling distortion and DOF showing black screen on Mobile
#jira UE-68431
#rb rolando.caloca

#ROBOMERGE-SOURCE: CL 4980971 in //UE4/Release-4.22/...
#ROBOMERGE-BOT: RELEASE (Release-4.22 -> Main)

[CL 4980972 by dmitriy dyomin in Main branch]
2019-02-13 02:12:17 -05:00
Rolando Caloca
9adacd446e UE4 - Manual merge from 4977115
- Remove shader pipelines on mobile platforms to reduce memory
#rb none
#rnx

[CL 4979217 by Rolando Caloca in Main branch]
2019-02-12 19:25:57 -05:00