95 Commits

Author SHA1 Message Date
zach bethel
c716a9d71b Deprecated InitRHI() in favor of InitRHI(FRHICommandListBase&).
#rb mihnea.balta, luke.thatcher, christopher.waters

[CL 26097154 by zach bethel in 5.3 branch]
2023-06-19 14:00:50 -04:00
kirill zorin
de8db5ff76 Converting ARO-facing raw pointers to TObjectPtr ahead of raw pointer ARO API deprecation.
#rb zousar.shaker
#rb markus.breyer
#rb robert.manuszewski

#preflight 646391406b1406b54ab15460

[CL 25489627 by kirill zorin in ue5-main branch]
2023-05-16 10:52:49 -04:00
charles bloom
4da5363385 fix infinite loop introduced in Convert To VT
#rb none
#preflight none

[CL 24884452 by charles bloom in ue5-main branch]
2023-04-01 02:37:58 -04:00
charles bloom
75cc1982eb Convert To VT : only UpdateList once, after user textures are set
#rb none
#preflight none

[CL 24851103 by charles bloom in ue5-main branch]
2023-03-30 02:10:41 -04:00
matt peters
85354d0163 FindAllTexturesAndMaterials_Iteration: Optimize by changing array to set and by avoiding duplicated work.
#rb Jeremy.Moore
#rnx
#preflight 64244d07b72410fc1740fddb

[CL 24839175 by matt peters in ue5-main branch]
2023-03-29 13:04:29 -04:00
dmitriy dyomin
ea9a5ee31f Added a separate entry in a RuntimeVirtualTexture component for a streaming VT that is specific to mobile rendering
Depending on target platform shading path one or the other SVT will be used
This is required for projects that has a significantly different landscape materials for each shading path
#rb jeremy.moore

[CL 24376462 by dmitriy dyomin in ue5-main branch]
2023-02-23 01:23:57 -05:00
dmitriy dyomin
80324d62ab [Backout] - CL24335980
[FYI] Dmitriy.Dyomin
Original CL Desc
-----------------------------------------------------------------
Added a separate entry in a RuntimeVirtualTexture component for a streaming VT that is specific to mobile rendering
Depending on target platform shading path one or the other SVT will be used
This is required for projects that has a significantly different landscape materials for each shading path
#rb jeremy.moore

[CL 24343407 by dmitriy dyomin in ue5-main branch]
2023-02-21 13:05:08 -05:00
dmitriy dyomin
ba94b1e506 [Backout] - CL24336341
[FYI] Dmitriy.Dyomin
Original CL Desc
-----------------------------------------------------------------
Fixed: interface for backward compat from CL# 24335980

[CL 24343402 by dmitriy dyomin in ue5-main branch]
2023-02-21 13:05:03 -05:00
dmitriy dyomin
b1253628a0 Fixed: interface for backward compat from CL# 24335980
[CL 24336795 by dmitriy dyomin in ue5-main branch]
2023-02-21 06:00:42 -05:00
dmitriy dyomin
65ad8e95e6 Added a separate entry in a RuntimeVirtualTexture component for a streaming VT that is specific to mobile rendering
Depending on target platform shading path one or the other SVT will be used
This is required for projects that has a significantly different landscape materials for each shading path
#rb jeremy.moore

[CL 24336769 by dmitriy dyomin in ue5-main branch]
2023-02-21 06:00:13 -05:00
zach bethel
67e95c0191 Fixed non-unity build break.
#preflight trivial

[CL 23880136 by zach bethel in ue5-main branch]
2023-01-26 21:41:50 -05:00
zach bethel
316bf6d91d Recreate render proxies prior to rendering virtual textures in order to recreate cached mesh commands that get invalidated.
#jira none
#preflight trivial

[CL 23874325 by zach bethel in ue5-main branch]
2023-01-26 15:39:08 -05:00
Luke Thatcher
75cee9fd43 Marked several functions on the immediate RHICmdList that do not use "this" as deprecated.
- Replaced uses of these functions in the engine with the global scope equivalents.
 - Added some missing global scope RHI...() functions.
 - LLM scopes have been moved into the global scope function, where necessary.

Removed several _RenderThread() RHICmdList functions
 - These were previously provided for the automatic RHI thread stall / flush mechanism, but now provide no benefit
 - Removing these also helps prevent use of FRHICommandListExecutor::GetImmediateCommandList() on threads other than the rendering thread.

Remove RHIExecuteCommandList
 - Unused, legacy code path. No platform RHIs provide an implementation. No need to deprecate since there's no way anyone would be calling it already.

#jira none
#rb Zach.Bethel
#preflight 63c86e2dfb1a8cf245f44469

[CL 23771476 by Luke Thatcher in ue5-main branch]
2023-01-19 06:13:08 -05:00
christopher waters
f8abec7a8e Material header dependency cleanup
- Removing MaterialAttributeDefinitionMap and MaterialRenderProxy from MaterialShared.h
- Removing MaterialShared from Material.h

#preflight 639cbb35776b61ba3b82f03e

[CL 23541603 by christopher waters in ue5-main branch]
2022-12-16 16:24:02 -05:00
christopher waters
e886ebc3cd Adding includes that code depended on implicitly. This is preperation for upcoming header dependency improvements.
#preflight 6397418acb2317695e1f3b2b

[CL 23480135 by christopher waters in ue5-main branch]
2022-12-12 13:40:46 -05:00
nick darnell
af006189a9 More fixes for the convert to virtual texture dialog, it no longer needs to load every asset that references a texutre just to see if it's a material.
[CL 23172525 by nick darnell in ue5-main branch]
2022-11-17 00:30:05 -05:00
nick darnell
8109734d4e Fixing unity build issue
[CL 23121819 by nick darnell in ue5-main branch]
2022-11-14 13:18:53 -05:00
nick darnell
9e765542af Editor - Fixing an ASan bug in the category paths, need to declare them statically so that the compiler doesn't free the list too early.
Editor - Upgrading the Texture AssetTypeActions to be AssetDefinitions.

#jira UE-169989
#jira UE-165574

[CL 23121796 by nick darnell in ue5-main branch]
2022-11-14 13:18:14 -05:00
henrik karlsson
b5b86c796c This change is a strategical submit for a coming change that removes lots of includes in headers that are included by many files. This change contains adding of includes in files that previously got those includes transitively from other inclkudes
#preflight 6355d4940313c24974b2107b
#rb none

[CL 22783162 by henrik karlsson in ue5-main branch]
2022-10-26 12:57:32 -04:00
jeremy moore
e71f3cec33 Fix crash when building RVT streaming mips.
Fence needs to be explicitly cleared after recent RHI parallel rendering updates.

[CL 22546737 by jeremy moore in ue5-main branch]
2022-10-14 22:20:40 -04:00
nick darnell
954d29b9f5 Editor - Beginning the process to no longer make loading all assets you right click in the content browser. The first step, is setting up the code to have a deprecation flag DEPRECATE_ASSET_TYPE_ACTIONS_NEEDING_LOADED_OBJECTS, this will make it illegal to implement GetActions on all AssetTypeAction implementations. Checked in disabled, enable it locally to begin trying to implement the recommended method detailed in the IAssetTypeActions header. WIP. One of the things this change does is outlaw (regardless of deprecation) the HasActions() function, this function is no longer used at all, and so we may as well remove its implementation, it also works well as a canary in finding other samples and things that need to be upgraded.
#jira UE-165574
[REVIEW] [at]Rex.Hill, [at]Lauren.Barnes
#preflight 63483c43ad0f7e2f20e44910

[CL 22534452 by nick darnell in ue5-main branch]
2022-10-14 16:59:41 -04:00
bryan sefcik
cb0456c6d4 Cleaned up build.cs files by removing any include paths that were already being added by UBT. This was done to help identify how include paths are being added and to help with future refactoring.
#jira
#preflight 631a5c04967ffc68fbf0dd8f

[CL 21911226 by bryan sefcik in ue5-main branch]
2022-09-08 21:44:02 -04:00
bryan sefcik
8cc129f2b6 IWYU Pass 1 - Engine/Source/Editor/...
#jira
#preflight 6306736ac85b7fef22be7751

[CL 21558583 by bryan sefcik in ue5-main branch]
2022-08-24 22:45:13 -04:00
Jeremy Moore
a72dcd01bf #jira UE-158632
Remove some non-inclusive language.
Deprecates AddViewSlaveLocation() for AddViewLocation() and AddTextureStreamingSlaveLoc() for AddTextureStreamingLoc().
#preflight 62cc8e5e1a786c1bbcf6e6aa

[CL 21056879 by Jeremy Moore in ue5-main branch]
2022-07-12 11:18:47 -04:00
zach bethel
34623f0321 Replaced thread-local MemStack with ConcurrentLinearAllocator across the renderer.
- Removed scene render mem-mark among others. MemStack usage is now restricted to local scopes with known marks.
 - Render resources with destructors are allocated using the FSceneRenderingBulkObjectAllocator on FSceneRenderer, which is deleted when the scene render is.

#preflight 62b266e20d4d6228de97babe
#rb mihnea.balta, yuriy.odonnell

[CL 20907647 by zach bethel in ue5-main branch]
2022-06-30 19:55:24 -04:00