Commit Graph

114 Commits

Author SHA1 Message Date
josie yang
2289056981 Fix incorrect auto merge of CL23966262 causing duplicated OwnerName
[CL 23966886 by josie yang in ue5-main branch]
2023-02-02 08:46:21 -05:00
josie yang
c133d226e8 Integrate RenderResourceViewer from //UE5/Main
Part3 - Integrate CL23347911 as edigrate
Add owner column to Render Resource Viewer, add owner path name tracking to skeletal & static mesh buffers
with conflict resolve modifications in RawIndexBuffer.cpp/h, RenderResource.cpp/h, RHIResources.h

#preflight 63dab3e2cf5296811729fecd

[CL 23966872 by josie yang in ue5-main branch]
2023-02-02 08:45:12 -05:00
christopher waters
5c36939f3a Dependency cleanup around RenderCore.h includes.
#preflight 63c1b21d1a06fc6105ef31c4

[CL 23688227 by christopher waters in ue5-main branch]
2023-01-13 17:25:01 -05:00
christopher waters
3b581ace52 Removing a lot of includes from RenderResource.h
#preflight 6392b827c709c72756ff9846

[CL 23463659 by christopher waters in ue5-main branch]
2022-12-09 10:42:32 -05:00
christopher waters
3b00d465a9 Reimplementing and correcting a backed out change that removes the header dependency on FResourceArrayInterface.
#preflight 63927786c415e8dc786e6e7f

[CL 23460971 by christopher waters in ue5-main branch]
2022-12-09 00:24:48 -05:00
bob tellez
838b34f3ed [Backout] - CL23454303
[FYI] christopher.waters
Original CL Desc
-----------------------------------------------------------------
Removing a lot of includes from RenderResource.h

#preflight 63924b059549ddaa2851034f

[CL 23460251 by bob tellez in ue5-main branch]
2022-12-08 21:23:27 -05:00
christopher waters
f3af3d734b Removing a lot of includes from RenderResource.h
#preflight 63924b059549ddaa2851034f

[CL 23460178 by christopher waters in ue5-main branch]
2022-12-08 21:20:03 -05:00
christopher waters
c6cceefe6f Moving TGlobalResource back into RenderResource.h as it makes more sense there.
GlobalRenderResources.h is no longer an implicit include from RenderResource.h

#preflight 6390b75f5624e6da5e7abe52

[CL 23431865 by christopher waters in ue5-main branch]
2022-12-07 13:44:28 -05:00
christopher waters
f8f7ca2782 Moving the bulk of global rendering resources into GlobalRenderResources.h.
Not fully deprecating includes yet.

#preflight 638eba1fc0652bbec2335106

[CL 23421741 by christopher waters in ue5-main branch]
2022-12-06 19:47:11 -05:00
christopher waters
fcfd8d3c58 Fixing CIS after manual merge.
[CL 23380413 by christopher waters in ue5-main branch]
2022-12-02 18:02:46 -05:00
christopher waters
e73b6cb859 Moving all RenderResource implementations in RenderResource.h into the cpp file for future forward declaration.
#preflight 638a62334c3ce8ae5d325aff

[CL 23380402 by christopher waters in ue5-main branch]
2022-12-02 18:02:29 -05:00
christopher waters
56465bfef0 Moving some utility functions out of RenderResource and into RenderUtils.
#preflight 638a505f4c3ce8ae5d2e174c

[CL 23378959 by christopher waters in ue5-main branch]
2022-12-02 16:36:00 -05:00
christopher waters
6ae040165a Moving FRayTracingGeometry into its own header+source files. FRayTracingGeometry can't forward declare its RHI members yet, so we need it in its own header to remove those dependencies from RenderResource.h
#rb tiago.costa
#preflight 63897bc0976b1644cb2f7450

[CL 23377483 by christopher waters in ue5-main branch]
2022-12-02 15:09:41 -05:00
christopher waters
951191d7c5 Moving TBoundShaderStateHistory into RHICore.
#preflight 63891db39242c01326e94756

[CL 23367537 by christopher waters in ue5-main branch]
2022-12-01 19:25:45 -05:00
Josie Yang
3612580418 Add owner column to Render Resource Viewer, add owner path name tracking to skeletal & static mesh buffers
#jira UE-167816
#rb jeremy.moore, jason.nadro, christopher.waters
#preflight 63865f947b4bd3f057a4e40b

[CL 23347911 by Josie Yang in ue5-main branch]
2022-12-01 05:27:05 -05:00
christopher waters
b986207a34 Moving some RHI types into their own headers:
- DataDrivenShaderPlatformInfo
- ERHIFeatureLevel
- EShaderPlatform

#rb florin.pascu
#preflight 638589464004f73f629ee0b0

[CL 23314007 by christopher waters in ue5-main branch]
2022-11-29 13:36:02 -05:00
aleksander netzel
5fb13876bb Add proper support for streamed geometries (geometries initialized as StreamingDestination) when dynamic ray tracing is enabled:
* Add FRayTracingGeometry::EGeometryStateFlags for tracking the state instead of several bools:
 - Add new state for tracking if the geometry was streamed in - its primary use is for dynamic ray tracing.
 - When ray tracing is toggled on at runtime we only recreate geometries that were marked as streamed in.
* Streamed geometries have to be created in a different way than regular geometries:
 - Creating geometry with StreamingDestination type will not allocate any memory for BLAS buffers.
 - Those can only be initialized by InitRHIForStreaming from temporary geometry with a StreamingSource type
 - Added FRayTracingGeometry::InitRHIForDynamicRayTracing() to handle both StreamingDestination and Rendering
  - For StreamingDestination it will do similar steps as normal mesh streaming does.
* Add missing RayTracingGeometry initialization when dynamic ray tracing was enabled but ray tracing was disabled.

#rb tiago.costa, yuriy.odonnell
#preflight 6372245ebf76990b71f5d021

[CL 23116977 by aleksander netzel in ue5-main branch]
2022-11-14 08:48:54 -05:00
charles bloom
f4f3b76663 FTexture : set debug shader bGreyScaleFormat ReplicateR property from CompressionSettings, not PixelFormat, so it matches what MaterialExpressions wil do
bGreyScaleFormat is only used by debug/editor shaders, game runtime uses SamplerType from MaterialExpressions
bGreyScaleFormat bool is needed because FTexture does not have access to CompressionSettings
behavior is observably different with Grayscale G16 and cases like TC_Alpha non-multiple-of-4

#preflight 636968d6d0174259ccea87f5
#rb dan.thompson

[CL 23023252 by charles bloom in ue5-main branch]
2022-11-07 21:47:57 -05:00
aleksander netzel
c07eb3fff0 Initial support for switching ray tracing on/off at runtime:
* Split IsRayTracingEnabled() into 2 parts: IsRayTracingEnabled() which can be changed at runtime and IsRayTracingAllowed() for checking if ray tracing can be enabled.
* r.Raytracing can now have following values: 0 - disabled, 1 - enabled all the time, 2 - enabled dynamic
* When ray tracing is dynamic, RayTracingGeometryManager will collect all FRayTracingGeometry and allocate/release RHI objects as needed depending on if ray tracing is enabled or not.
* Ray tracing can be switched on/off with r.Raytracing.Enable (default is 1).
* Add support to most features used in CitySample/Lyra for switching ray tracing at runtime.
* TODO: Hair geometries are not yet released.

#rb yuriy.odonnell
#preflight 634feac68176062ea7da933f

[CL 22622885 by aleksander netzel in ue5-main branch]
2022-10-19 09:00:41 -04:00
yuriy odonnell
a7230698dd Fix spelling Plaform -> Platform
#rb Mihnea.Balta
#preflight 6335d35af76de2d4d561dbec

[CL 22263180 by yuriy odonnell in ue5-main branch]
2022-09-30 00:47:45 -04:00
florin pascu
2ff00a89a2 Fix RT for other platforms besides PC
#rb Aleksander.Netzel
#jira none
#preflight 6321be4c29254beccbc5c4bd

[CL 22008205 by florin pascu in ue5-main branch]
2022-09-14 11:35:13 -04:00
florin pascu
0bc3e61f01 - Add IsRayTracingEnabled(ShaderPlatform) overload that returns true when Project has RT on and ShaderPlatform supports RT and has it on for the project
- Don't create FRayTracingMeshProcessor when IsRayTracingEnabled is false
- Only Add RayTracingGeometries when IsRayTracingEnabled returns true
They are added to the FRayTracingMeshProcessor and will try to compile SF_RayHitGroup shaders
#rb Dmitriy.Dyomin, Carl.Lloyd
#jira UE-160278
#preflight 63208193e93a80888c3ea4d9

[CL 21988506 by florin pascu in ue5-main branch]
2022-09-13 14:22:19 -04:00
Florin Pascu
6b3c1469ba Preview Shader Platform using different ShaderMaps and the DDPI/Cvar values of the Previewable Actual Platform
NumPlatforms limit changed from 64 to 65536, limited by NumBits
#jira UE-120561
#rb Chris.Waters, Jack.Porter, Mihnea.Balta
#preflight 630f1604f92416fb92b373ab

[CL 21718179 by Florin Pascu in ue5-main branch]
2022-08-31 04:38:34 -04:00
arne schober
11bcaa521d Add extra debug info for FRenderResource lifetime.
#ROBOMERGE-AUTHOR: arne.schober
#ROBOMERGE-SOURCE: CL 21198085 via CL 21198090 via CL 21198094
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21198504 by arne schober in ue5-main branch]
2022-07-21 04:08:31 -04:00
Bryan sefcik
b4a6e947d8 Ran IWYU on Public headers under Engine/Source/Runtime/...
Headers are updated to contain any missing #includes needed to compile and #includes are sorted.  Nothing is removed.

#ushell-cherrypick of 21065896 by bryan.sefcik
#preflight 62d4b1a5a6141b6adfb0c892
#jira

#ROBOMERGE-OWNER: Bryan.sefcik
#ROBOMERGE-AUTHOR: bryan.sefcik
#ROBOMERGE-SOURCE: CL 21150156 via CL 21151754 via CL 21154719
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)
#ROBOMERGE-CONFLICT from-shelf

[CL 21181076 by Bryan sefcik in ue5-main branch]
2022-07-20 11:31:36 -04:00