Commit Graph

167 Commits

Author SHA1 Message Date
zach bethel
50b6956d6a Ported IrradianceEnvironmentMap to RDG.
#preflight 628d31a3c97e4beea3ad4e21
#rb sebastien.hillaire

[CL 20370328 by zach bethel in ue5-main branch]
2022-05-25 15:53:11 -04:00
zach bethel
5041fbf50c Minor clean up of reflection capture copy.
#preflight trivial

[CL 20262321 by zach bethel in ue5-main branch]
2022-05-18 12:20:07 -04:00
zach bethel
379ccdd136 Added RHICopyTexture unit tests and fixed up inconsistencies / bugs.
- A zero size now uses the source texture size adjusted to the source mip.
 - Source / dest offsets and size now properly scale with each successive mip level.
 - Fixed bug in reflection capture GPU copy due to inconsistent behavior.
 - Deprecated GRHISupportsCopyToTextureMultipleMips which is now always true.

#rb brian.white
#preflight 627fc1af3339713c4a9800da

[CL 20224824 by zach bethel in ue5-main branch]
2022-05-16 11:11:35 -04:00
zach bethel
2156756315 Replaced use of CopyToResolveTarget with CopyTexture.
#preflight 627a90ff7e5f24d1edd73422
#rb luke.thatcher, jason.hoerner

[CL 20127337 by zach bethel in ue5-main branch]
2022-05-10 14:47:34 -04:00
Tiantian Xie
2d7f3c3317 Fix crash when building lighting with a reflection capture.
* Capture in editor(was +2) and loading from file(+1) added different reference count. The cubemap in use is not marked as delete correctly.
* When a capture is rebuilt, all reference should change to the new capture.

#jira UE-150154
#rb Juan.Canada
#preflight 626ca44eef3968f419d12513

[CL 20008692 by Tiantian Xie in ue5-main branch]
2022-05-02 10:53:51 -04:00
Tiantian Xie
e7148d42f0 Fix the crash when building lighting with a reflection capture in the scene.
#jira UE-150154
#rb Juan.Canada
#preflight 626aa0bab17dd9121b3a8272
#preflight 626ab3a3ad56c0cbbea34c61

[CL 19963344 by Tiantian Xie in ue5-main branch]
2022-04-28 11:56:40 -04:00
carl lloyd
73c8996430 Mobile GL Deferred ReflectionCapture UBO fix (passed too many elements and hit the GL limit)
#rb Zach.Bethal, Dmitriy.Dyomin
#preflight 626a69d52d28b9d0f7831abc

[CL 19957425 by carl lloyd in ue5-main branch]
2022-04-28 06:34:43 -04:00
carl lloyd
54e296cef5 Added support for forcing Real UB's when using emulated UB's
#rb Dmitriy.Dyomin, Laura.Hermanns, Mihnea.Balta
#preflight 62556f463f5641db59f06e8b

[CL 19719192 by carl lloyd in ue5-main branch]
2022-04-12 08:41:13 -04:00
rtrick
4ecbb1ce26 PR #8520: Fix for Reflection Captures sometimes showing up black in packaged game. (Contributed by rtrick)
#ushell-cherrypick of 17834874 by UnrealBot

#jira UE-131950
#preflight 624dd34f8e5ae00f0acc7a58
#rb none

[CL 19670744 by rtrick in ue5-main branch]
2022-04-07 11:53:12 -04:00
zach bethel
a00b40ad3b Deprecated GetRenderTargetItem() from IPooledRenderTarget.
#preflight 624ddb30090236773a1a83e0
#rb luke.thatcher

#ROBOMERGE-AUTHOR: zach.bethel
#ROBOMERGE-SOURCE: CL 19655641 via CL 19655653 via CL 19655661
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v938-19570697)

[CL 19657582 by zach bethel in ue5-main branch]
2022-04-06 18:24:24 -04:00
zach bethel
9996233f7a Removed unused legacy MSAA multi-texture support from IPooledRenderTarget.
- Deprecated legacy members from FPooledRenderTargetDesc.
 - Deprecated ETextureRenderTarget and removed from RDG.
 - TargetableTexture always equals ShaderResourceTexture.
 - Simplified render target pool FindFreeElement.
 - Create pooled buffers and textures with a known state.

#rb graham.wihlidal
#preflight 61f8488568795b2f45852274

#ROBOMERGE-AUTHOR: zach.bethel
#ROBOMERGE-SOURCE: CL 18796880 in //UE5/Release-5.0/... via CL 18797840 via CL 18799070
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)

[CL 18799188 by zach bethel in ue5-main branch]
2022-01-31 17:22:31 -05: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
056a26cddd Refactored uniform buffers to use static bindings as opposed to FPersistentUniformBuffers across the deferred renderer. This removes the view uniform buffer and reflection capture uniform buffers from mesh draw commands and reduces the use of RHIUpdateUniformBuffers.
- View / InstancedView uniform buffers are now bound through RDG directly from the FViewInfo, or created on-demand for cases like jitter-free custom depth.
 - Removed most of the custom persistent view uniform buffers. Left one in Lumen to be done in a later CL.
 - ReflectionCapture uniform buffer is now bound at the RDG pass level.

#rb christopher.waters

[CL 14873982 by zach bethel in ue5-main branch]
2020-12-07 17:43:21 -04:00
zach bethel
53bdcb2ff4 Removed deprecated LPV feature from the engine.
#rb krzysztof.narkowicz, andrew.lauritzen, daniel.wright
#jira none

[CL 14516783 by zach bethel in ue5-main branch]
2020-10-19 15:06:44 -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
Michal Valient
95d19f95b1 [REVERB] Merging //UE4/Private-Reverb-Development@13832732
#rb graham.wihlidal, rune.stubbe, brian.karis, andrew.lauritzen, jeff.farris

[CL 13834854 by Michal Valient in ue5-main branch]
2020-07-06 18:58:26 -04: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
Guillaume Abadie
75a289c0f6 Moves FReflectionEnvironmentSkyLightingPS into IndirectLightRendering.cpp
#rb none
#fyi juan.canada

[CL 10490646 by Guillaume Abadie in Main branch]
2019-12-02 17:12:08 -05:00
brandon schaefer
82c4789369 Missing if/def around GetRayTracingReflectionsSamplesPerPixel
#jira none
#rb Juan.Canada
[FYI] Riley.Alston
#lockdown cristina.riveron

#ROBOMERGE-SOURCE: CL 10476536 in //UE4/Release-4.24/...
#ROBOMERGE-BOT: RELEASE (Release-4.24 -> Main) (v595-10452236)

[CL 10476539 by brandon schaefer in Main branch]
2019-11-27 16:56:37 -05:00
riley alston
e7da351115 Fix a crash with ray traced reflections set to 0spp and move samples per pixel calculation to a function.
#rb none
#jira none
#lockdown cristina.riveron

#ROBOMERGE-SOURCE: CL 10475574 in //UE4/Release-4.24/...
#ROBOMERGE-BOT: RELEASE (Release-4.24 -> Main) (v595-10452236)

[CL 10475577 by riley alston in Main branch]
2019-11-27 15:24:31 -05:00
luke thatcher
93c7ddf2b1 Remove ClearCubeArray and fix creation of cube array resources in the reflection environment.
- Old code was clamping the minimum number of cubes in the reflection environment cube array to 2, to force that the RHI resource was always an array, rather than a single cube.
 - This only seemed to be necessary because the pooled render target desc function only set bIsArray to true if InArraySize > 1.
 - Adding a CreateCubemapArrayDesc function removes the need to clamp the num slices, so now we allocate the number of cubes we actually need. This also solves the validation warnings that CL 10112521 was originally working around.

#rb Jonas.Meyer
#jira UE-84861
#lockdown nick.penwarden

#ROBOMERGE-SOURCE: CL 10335365 in //UE4/Release-4.24/...
#ROBOMERGE-BOT: RELEASE (Release-4.24 -> Main) (v594-10333955)

[CL 10335366 by luke thatcher in Main branch]
2019-11-21 09:58:33 -05:00
jonas meyer
fa80cbd7ff Only clear last cubearray.
This is a workaround for the clearing of the cubemap overwriting the upload of it.
#jira UE-84333
#rb none
#lockdown nick.penwarden

#ROBOMERGE-SOURCE: CL 10318579 in //UE4/Release-4.24/...
#ROBOMERGE-BOT: RELEASE (Release-4.24 -> Main) (v593-10286020)

[CL 10318584 by jonas meyer in Main branch]
2019-11-20 08:50:09 -05:00
jonas meyer
5e2c3f951b Lots of vulkan validation work:
-Debug Names for images for helping track down validation errors
-When the reflection environment rounds up to 2 cubemaps, explicitly clear it to avoid a validation error
-Shadowmask texture is now properly transitioned to read.
-Add Missing transtion for LightScatteringHistoryTexture
-Add Ensure when updating descriptorset, to catch validation errors when texture is set
-Fixed an issue in transition resources, where it would use the incorrect no. of subresources
-Add VK_QUERY_RESULT_WAIT_BIT to ensure Query results are actually ready when copied back to result buffer
#rb rolando.caloca
#lockdown nick.penwarden
#jira none

#ROBOMERGE-OWNER: jonas.meyer
#ROBOMERGE-AUTHOR: jonas.meyer
#ROBOMERGE-SOURCE: CL 10112521 in //UE4/Release-4.23/...
#ROBOMERGE-BOT: RELEASE (Release-4.23 -> Main) (v587-10111126)

[CL 10112575 by jonas meyer in Main branch]
2019-11-12 10:29:49 -05:00
juan canada
1e777cdeb9 Refactor ray tracing reflections in multiview mode to remove unnecesary work and keep coherency with raster path.
#jira UE-72557
#rb none
[FYI] guillaume.abadie

#ROBOMERGE-SOURCE: CL 9961996 in //UE4/Release-4.24/...
#ROBOMERGE-BOT: RELEASE (Release-4.24 -> Main) (v558-9892490)

[CL 9961997 by juan canada in Main branch]
2019-11-01 18:26:08 -04:00
juan canada
4d06575cd6 Added multiview support for ray tracing.
TODO: denoisers do not work in multiview mode yet

#jira UE-72557
#rb charles.derousiers

#ROBOMERGE-SOURCE: CL 9688884 in //UE4/Release-4.24/...
#ROBOMERGE-BOT: RELEASE (Release-4.24 -> Main) (v538-9681622)

[CL 9688885 by juan canada in Main branch]
2019-10-18 10:35:06 -04:00