Commit Graph

63 Commits

Author SHA1 Message Date
stu mckenna
a90ed8bfe4 - Add support for none particle bindings to geometry cache renderer
- Move accessor into properties to reduce CPU cost for each renderer

#rb rob.krajcarski
#jira UE-178014
#preflight 644ac1e8877716c87873d161

[CL 25240311 by stu mckenna in ue5-main branch]
2023-04-28 16:40:17 -04:00
jaime cifuentes
d9fb5efbd1 Truncation fixes for AlembicLibrary
#rb Thomas.Sarkanen
#jira UE-183903
#preflight 6443cfb4f030f684d55a0b91

[CL 25161751 by jaime cifuentes in ue5-main branch]
2023-04-24 06:26:29 -04:00
daniel coelho
97398db93d USD: Use AssetUserData instead of AssetImportData for better runtime support;
Implement IInterface_AssetUserData for UGroomCache and UGeometryCache.

#jira none
#preflight 6443c1f30206a6e20fc2ffc5
#rb Anousack.Kitisa

[CL 25157830 by daniel coelho in ue5-main branch]
2023-04-22 07:35:05 -04:00
max chen
5332e3e78f Sequencer: Allow track editors if it's supported by the sequence (and not just by level sequence)
Fix regression caused by track permissions 20284129

#preflight 6438708fec219759f5d9c8ce
#rb andrew.rodham, austin.crismore
#jira UE-183270

[CL 25035757 by max chen in ue5-main branch]
2023-04-13 20:44:27 -04:00
jeannoe morissette
7fbce517d1 RHI: Fix assert in CIS where EBufferType::Typed buffers had no format specified.
#rb Luke.Thatcher
#preflight 6436fb2d0c4277fc0bc70583
#rnx

[CL 25012466 by jeannoe morissette in ue5-main branch]
2023-04-12 15:03:42 -04:00
Luke Thatcher
e6b40d3954 Major refactor of RHICreateShaderResourceView and RHICreateUnorderedAccessView functions - Merging //UE5/Dev-ParallelRendering (up to CL 24988990) to //UE5/Main
This changelist is a merge of work done in //UE5/Dev-ParallelRendering to remove tech debt in the SRV/UAV create functions. See individual changelist descriptions in that stream for further details, but a summary of the change is as follows:
 - We had multiple overloads of each of the RHICreateShaderResourceView and RHICreateUnorderedAccessView functions. Each function had a different set of supported view types and using them was complicated / ambiguous.
 - There's now only 2 create functions, and a common FRHIViewDesc descriptor struct, which is stored on the base view class.

 - FRHIView takes a reference on the underlying resource, ensuring that RHI views keep their viewed resource alive. This was not the case on some platforms, since it was previously the platform RHI implementation's responsibility.
 - Platform RHI implementations resolve an FRHIViewDesc into a full FViewInfo struct using GetViewInfo. This centralizes the logic for computing num mips / num slices / format etc so it is the same across all platforms.

 - Views must never be created with nullptr resources. This used to happen in the mesh streamer, but now all views require a real underlying resource. That resource can be a "BUF_NullResource" buffer, which is what the mesh streamer uses as a placeholder for buffers that have not streamed yet.
 - We will eventually replace FRHITextureReference with a "null texture", similar to how BUF_NullResource works for buffers. This is not yet implemented, so there is no "null view" of a texture currently.

#rb kenzo.terelst,jeannoe.morissette,dmitriy.dyomin
#preflight 643534642855180717af410e
#jira none

[CL 24989901 by Luke Thatcher in ue5-main branch]
2023-04-11 08:59:21 -04:00
anousack kitisa
766a3f9c6a USD: Fixed possible double free with USD stream.
#jira UE-181792
#rb daniel.coelho
#preflight 642b039a6a37fb35e9c2ec0f
#lockdown jeanmichel.dignard

[CL 24903140 by anousack kitisa in ue5-main branch]
2023-04-03 18:27:48 -04:00
daniel coelho
3b905fe8e1 USD: Track resource sizes for UGeometryCache and UGeometryTrackUsd
#jira UE-176344
#rb Anousack.Kitisa
#preflight 6422afa8710ec8400fa720ec

[CL 24815946 by daniel coelho in ue5-main branch]
2023-03-28 05:28:31 -04:00
Anousack Kitisa
c3e497d942 GeometryCache: Fixed GeometryCache ignoring "Receive Decals" setting with Deferred Decal materials.
#jira UE-38993
#rb none
#preflight 641475fe691c5ebc159474a7

[CL 24689112 by Anousack Kitisa in ue5-main branch]
2023-03-17 10:33:33 -04:00
Charles deRousiers
b8551681e8 Clean up component access for hair binding.
#rb anousack.kitisa
#jira none
#preflight 640f284d7e654e2e6584dc11
#fyi michale.forot

[CL 24612576 by Charles deRousiers in ue5-main branch]
2023-03-13 10:40:45 -04:00
Anousack Kitisa
fd53366855 Alembic:
* Added material slot names to Geometry Cache and related functions on the component. In particular,calling SetMaterialByName on the component in Blueprint will now work.
* Face set names are now imported from Alembic as material slot names for GeometryCache (and static and skeletal meshes).

#jira UE-149340
#jira UE-172806
#rb Johan.Duparc
#preflight 6408af796e1dadfcda051a57

[CL 24560605 by Anousack Kitisa in ue5-main branch]
2023-03-08 11:05:23 -05:00
michael galetzka
3a26fedce8 Fixed a bug where component renderers were still visible when another emitter was running isolated
#jira UE-173238
#rb stu.mckenna
#preflight 63f6350a9129b42b2555a56b

[CL 24370903 by michael galetzka in ue5-main branch]
2023-02-22 17:27:03 -05:00
henrik karlsson
28e0ff4360 Fixed non unity/pch errors found when building UnrealGame and UnrealEditor without unity/pch
#preflight 63d195abbe435f17b407c589
#rb none
#jira none

[CL 23857972 by henrik karlsson in ue5-main branch]
2023-01-25 17:06:14 -05:00
henrik karlsson
9a1d5b1ad4 [Engine/Plugins]
* Ran IWYU on ~170 plugins to remove includes not needed. Public api still keep old includes inside #if UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_2

#preflight 63d09351574ab9cae4670216
#rb none

[CL 23844750 by henrik karlsson in ue5-main branch]
2023-01-25 02:42:36 -05:00
Stu McKenna
a56b8adb14 - Move common IsSupportedVariableForBinding into base renderer
- Ensure we handle IsRendererEnabled consistently

#rb rob.krajcarski
#jira UE-167810
#preflight 63c9df23894b6403145dd216

[CL 23793641 by Stu McKenna in ue5-main branch]
2023-01-20 13:28:41 -05:00
George Rolfe
1cf37c5e8d GeometryCacheStreamingManager fix to not deadlock MapChunk
#jira UE-174505
#jira UE-172304
#rb anousack.kitisa
#preflight 63c8e53c9f0d23c15aac70a2

[CL 23782411 by George Rolfe in ue5-main branch]
2023-01-19 17:39:18 -05:00
henrik karlsson
9183978e29 [Engine/Plugins]
* Removed includes (using IWYU) in private files

#preflight 63c79978ac35a0e9dabbe408
#rb none

[CL 23770038 by henrik karlsson in ue5-main branch]
2023-01-19 00:48:07 -05:00
daren cheng
5d8250f0ec Add support for multiple thumbnail render frequencies.
Preparation changing default thumbnail render frequency.

#jira UE-169079
#preflight 63c08bc902024f93d8c1a650
#rb lauren.barnes, patrick.boutot, brooke.hubert

[CL 23673011 by daren cheng in ue5-main branch]
2023-01-12 20:50:24 -05:00
Andrew Rodham
4ff7bab147 Slate: Initial phase of FVector2D deprecation
- Expanded FDeprecateSlateVector2D to provide structs for parameters, return types and member variables that use FVector2f, while still allowing conversion to/from FVector2d with optional per-module deprecation mechanisms.
  - Many of the high-traffic SlateCore types like FSlateBrush, FGeometry and FSlateLayoutTransform have been converted to use these deprecation mechanisms.
  - Some legacy FGeometry::ToPaintGeometry and MakeChild overloads have been explicitly deprecated since they cause ambiguous overloads with FSlateLayoutTransform if it were to support implicit construction.
  - Deprecated ULocalPlayer::GetPixelBoundingBox and GetPixelPoint to prefer FVector2f for OptionalAllotedSize parameter since this parameter is expected to come from FGeometry
  - Exposed FVector2f members to blueprints

#jira none
#rb Andy.Davidson, Dave.Jones, Vincent.Gauthier, Patrick.Boutot
#preflight 63bc6fd068068a8bd6027c9f

[CL 23631073 by Andrew Rodham in ue5-main branch]
2023-01-10 14:46:43 -05:00
christopher waters
8fd10b0e13 Dependency cleanup around some Rendering headers.
#preflight 63b893e547321b9d895924b0

[CL 23605570 by christopher waters in ue5-main branch]
2023-01-06 18:57:09 -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
7215f7d4ec Fully moving MaterialDomain to its own header.
#jira none
#preflight 639b4dc335203bc7aa695078

[CL 23531533 by christopher waters in ue5-main branch]
2022-12-15 16:01:51 -05:00
tiantian xie
70c2dba8c0 Move RayTracingInstance.h and RayTracingInstance.cpp from Engine module the Renderer module.
* Remove the need to call BuildInstanceMaskAndFlags(), BuildRayTracingInstanceMaskAndFlags() manually in GetXXRayTracingInstance(). They will be called in the renderer module. All functions manually called has been removed.
* Remove the RENDER_API public api for those functions, as they cause link error in the Engine module (where the header is included in the Engine build file for static library link. the RENDERER_API is interpreted as dllimport, which will not link the functions in RayTracingInstance.cpp) and there is no need to call them outside of renderer module.
* A callback function is added to FRayTracingInstance, use it for RaytracingInstanceMaskandFlags caching.

Note: this is a first step to separate the instance mask between RayTracing and PathTracing, where PathTracing uses a totally different instance mask. This cleanup is un-avoidable if we want to keep rendering related code in the renderer module.

#rb Yuriy.ODonnell
#jira UE-172742
#preflight 6399002f2960b732202acc7c

[CL 23514248 by tiantian xie in ue5-main branch]
2022-12-14 13:16:33 -05:00
christopher waters
6e30ddb01e Dependency cleanup around DataDrivenShaderPlatformInfo and a few other headers.
#preflight 63921e6a67018b14b5925197

[CL 23454104 by christopher waters in ue5-main branch]
2022-12-08 15:35:35 -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