Commit Graph

934 Commits

Author SHA1 Message Date
Yuriy ODonnell
5fde1014df Implemented the full fix for UE-106993 and removed workaround put in place for 4.26 hotfix. BeginReleaseResource() can now be used with FRayTracingGeometry, as it now implements FRenderResource::ReleaseResource() interface.
#jira UE-106993

[CL 16019715 by Yuriy ODonnell in ue5-main branch]
2021-04-15 07:39:16 -04:00
christopher waters
874ec853a4 Filling a few gaps in Mesh shader support. Adding ShouldCompilePermutation support to shader pipeline types to guard against unsupported shader types.
#jira none
#rb arciel.rekman
#preflight 60773f1c3f280e0001331ab8

[CL 16012256 by christopher waters in ue5-main branch]
2021-04-14 17:05:02 -04:00
Johan Torp
89760a6ef8 Reduce shader compilation allocations during early editor startup
#rb matt.peters

[CL 15987421 by Johan Torp in ue5-main branch]
2021-04-13 05:49:33 -04:00
wei liu
fd8ea2fa94 Support a pass with the ability to explicitly skip pass merging.
#jira 113084

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

#lockdown ben.marsh

#ROBOMERGE-SOURCE: CL 15966669 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v787-15839533)

[CL 15981946 by wei liu in ue5-main branch]
2021-04-12 15:36:14 -04:00
Arciel Rekman
952349a481 Allow overriding LogShaders verbosity via logcmds when r.ShaderDevelopmentMode isn't set.
- E.g. now possible to get more info with -logcmds="logshaders veryverbose"

#rb Jason.Nadro
#jira none

[CL 15980684 by Arciel Rekman in ue5-main branch]
2021-04-12 14:41:25 -04:00
arciel rekman
6ae436afb1 Do not write the global shadermap to DDC until it's complete (UE-108245).
#rb Jason.Nadro, Ben.Ingram
[REVIEW] [at]Jason.Nadro, [at]Ben.Ingram
#lockdown Kevin.Ortegren
#jira UE-108245

#ROBOMERGE-SOURCE: CL 15955360 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v787-15839533)

[CL 15971519 by arciel rekman in ue5-main branch]
2021-04-10 10:04:56 -04:00
Marc Audy
01b7c9f4f5 Merge UE5/RES @ 15958325 to UE5/Main
This represents UE4/Main @ 15913390 and Dev-PerfTest @ 15913304

[CL 15958515 by Marc Audy in ue5-main branch]
2021-04-08 14:32:07 -04:00
zach bethel
583f3b7ce1 Allow extracted resources to be re-used within the same graph if the reference is no longer externally held. Allows overlap of shadow HZB, saving 45MB.
#rb trivial
#lockdown michal.valient

#ROBOMERGE-SOURCE: CL 15951972 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v787-15839533)

[CL 15951980 by zach bethel in ue5-main branch]
2021-04-08 00:39:34 -04:00
Florin Pascu
575f254fce DF shadow fix for mobile es31 without independent samplers
Moved most of PCD3D_ES3_1 settings from code to DataDrivenPlatformInfo
#rb Dmitriy.Dyomin
#preflight 606d5b490ecb2c00011b988c

[CL 15938717 by Florin Pascu in ue5-main branch]
2021-04-07 04:35:19 -04:00
zach bethel
cfd61f6e52 Moved GPU scene upload work to RDG.
#rb ola.olsson
[FYI] graham.wihlidal, andrew.lauritzen
#lockdown michal.valient

#ROBOMERGE-SOURCE: CL 15932750 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v786-15839533)

[CL 15932762 by zach bethel in ue5-main branch]
2021-04-06 13:59:36 -04:00
zach bethel
d663ad3b00 Fixed RDG builder to propagate transient Discard flag to RHI.
[FYI] kenzo.terelst
#lockdown michal.valient
#rnx

#ROBOMERGE-SOURCE: CL 15932140 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v786-15839533)

[CL 15932170 by zach bethel in ue5-main branch]
2021-04-06 13:11:13 -04:00
zach bethel
d66076eacf Added RDG validation to check for dangling pointers and assert at AddPass time. Tracks resources actively used in the graph and will emit an assert if an incoming resource isn't part of the set. This would catch, for example, if the user kept around a resource from a previous builder and tried to reuse it in a new builder.
#rb charles.derousiers
#jira none

[CL 15931804 by zach bethel in ue5-main branch]
2021-04-06 12:38:10 -04:00
zach bethel
9fc8b1722d Refactored RDG ConvertToUntrackedX functionality into the RDG builder; renamed the operation to 'FinalizeAccess' for clarity, as the resource is considered finalized in the graph and will not transition to any other state. This operation now supports multiple resources, improving performance in cases where multiple resources are finalized back-to-back. Added validation to check that the user don't attempt to use it outside of its finalized state. Fixed up a few places where this assumption was being violated. Minor refactors in various places to use new API.
#rb arne.schober, christopher.waters
#jira none

[CL 15931331 by zach bethel in ue5-main branch]
2021-04-06 11:45:09 -04:00
Ben Ingram
e6c2c85df5 Fixes for UDIM VTs in texture editor
UDIMs use transformed UVs, account for these when computing visible regions
#rb none
#jira none

[CL 15926164 by Ben Ingram in ue5-main branch]
2021-04-05 21:56:26 -04:00
andrew lauritzen
07c2fd9238 Treat stationary lights as movable for the purposes of shadowing when Non-Nanite VSMs are enabled.
Remove VirtualShadowMapConfig.h which is no longer necessary.

#ROBOMERGE-SOURCE: CL 15919666 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v786-15839533)

[CL 15921215 by andrew lauritzen in ue5-main branch]
2021-04-05 15:05:40 -04:00
zach bethel
7ab2877ef0 Fix for N-to-N pipe transition check in RDG.
#rb trivial
#jira UE-112571

#ROBOMERGE-SOURCE: CL 15912950 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v786-15839533)

[CL 15912962 by zach bethel in ue5-main branch]
2021-04-04 21:16:04 -04:00
marc audy
bf2e06bca2 Added initial support for RDG_{TEXTURE, BUFFER}_ACCESS_ARRAY, which enables a dynamic number of inputs into an RDG pass. Removed unused / deprecated SHADER_PARAMETER_RDG_BUFFER.
#rb none

#ROBOMERGE-OWNER: marc.audy
#ROBOMERGE-AUTHOR: zach.bethel
#ROBOMERGE-SOURCE: CL 15905815 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v786-15839533)
#ROBOMERGE-CONFLICT from-shelf

[CL 15907353 by marc audy in ue5-main branch]
2021-04-02 20:35:50 -04:00
zach bethel
4143f7d0c1 Added RDG support for cube volume textures.
#rb sebastien.hillaire
#jira none

#ROBOMERGE-SOURCE: CL 15903221 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v786-15839533)

[CL 15907011 by zach bethel in ue5-main branch]
2021-04-02 19:48:57 -04:00
arciel rekman
93e19dd06e Fix crashes when dumping shaderlib debug info (UE-106302).
#rb none
#jira UE-106302
#rnx

#ROBOMERGE-SOURCE: CL 15890197 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v786-15839533)

[CL 15890468 by arciel rekman in ue5-main branch]
2021-04-01 12:16:46 -04:00
Yuriy ODonnell
4ae3c4c98d Added EVertexFactoryFlags::SupportsRayTracingDynamicGeometry to avoid FindVertexFactoryType() calls in IsSupportedDynamicVertexFactoryType().
[CL 15887835 by Yuriy ODonnell in ue5-main branch]
2021-04-01 08:18:18 -04:00
Yuriy ODonnell
b64789e21e Renamed FAccelerationStructureBuildParams -> FRayTracingGeometryBuildParams, added FRayTracingSceneBuildParams for advanced scene BVH build options.
#rb Luke.Thatcher

[CL 15878809 by Yuriy ODonnell in ue5-main branch]
2021-03-31 14:19:03 -04:00
charles derousiers
5ac4bb66e3 Fix duplicated RefCount between RDGPooledResource and RDGPooledBuffer.
#rb zach.bethel

#ROBOMERGE-SOURCE: CL 15863150 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v786-15839533)

[CL 15863182 by charles derousiers in ue5-main branch]
2021-03-30 11:50:30 -04:00
zach bethel
f2d4135093 Fix for race in RHI validation due to transient allocator re-initializing barrier tracking on the render thread.
#rb kenzo.terelst, luke.thatcher
#jira none

#ROBOMERGE-SOURCE: CL 15853874 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v786-15839533)

[CL 15854607 by zach bethel in ue5-main branch]
2021-03-29 15:54:31 -04:00
daniel wright
c282ae68e5 New Lumen Project Setting: Software Tracing Mode
Renamed TraceCards -> TraceMeshSDFs in code / cvars

#ROBOMERGE-SOURCE: CL 15837163 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v785-15821902)

[CL 15837190 by daniel wright in ue5-main branch]
2021-03-25 22:09:05 -04:00
zach bethel
0f1d926f3f Fix for crash in RDG when async compute is enabled. Raster pass resources were being initialized after later async compute passes, causing a mismatch in resource creation. This change moves render pass merging to happen before async compute fencing, since they are otherwise independent operations.
#fyi graham.wihlidal, yuriy.odonnell

[CL 15836462 by zach bethel in ue5-main branch]
2021-03-25 20:08:40 -04:00