Commit Graph

439 Commits

Author SHA1 Message Date
Tim Smith
a47c32b526 Fixed issue where LiveCoding fails to reinstance objects when their structure has changed.
#jira UE-126681
#rb trivial
#rnx
#preflight 61486bfa11925a00015b3c8a

[CL 17569666 by Tim Smith in ue5-main branch]
2021-09-20 08:13:50 -04:00
Tim Smith
d299ae0ef8 Modified warning text to include notes that crashes are likely when data changes are made without re-instancing enabled.
#rb trivial
#rnx
#jira UE-126667

[CL 17569566 by Tim Smith in ue5-main branch]
2021-09-20 08:02:37 -04:00
christopher waters
a8f866f355 D3D shader cleanup:
- Removed some unnecessary code from D3D shader compilers.
- Removing shader VendorExtensions runtime data from platforms that don't need them.
- Turning FShaderCodeFeatures into a set of flags to reduce its size. Adding a few new flags for future use.
- Moved the common D3D12 shader data and creation code into shared locations to cut down on code duplication.
- Removed the unnecessary copying of header data from all D3D12 shader types.
- Removed FD3D12ShaderBytecode since its values can be inferred from other shader data.

#jira none
#rb rolando.caloca, arciel.rekman
#preflight 6140c2df3aa82d000149f13b

[CL 17509617 by christopher waters in ue5-main branch]
2021-09-14 16:28:06 -04:00
Dmitriy Dyomin
644b8272db Added a missing VulkanShaderFormat to a Windows target platform
[CL 17501629 by Dmitriy Dyomin in ue5-main branch]
2021-09-14 04:43:39 -04:00
aurel cordonnier
e3f7878676 Merge from Release-Engine-Test @ 17462327 to UE5/Main
This represents UE4/Main @17430120 and Dev-PerfTest @17437669

[CL 17463546 by aurel cordonnier in ue5-main branch]
2021-09-08 16:42:26 -04:00
guillaume abadie
1b35fa0469 Migrates D3D to submit all loose shaders parameters in a single RHISetShaderParameter()
#rb none
#preflight 61323f857d30040001b77b61


#ROBOMERGE-OWNER: guillaume.abadie
#ROBOMERGE-AUTHOR: guillaume.abadie
#ROBOMERGE-SOURCE: CL 17431343
#ROBOMERGE-BOT: (v870-17433530)
#ROBOMERGE-CONFLICT from-shelf

[CL 17438616 by guillaume abadie in ue5-main branch]
2021-09-06 11:28:16 -04:00
Lukas Hermanns
7161ed1348 Replace EHlslShaderFrequency with EShaderFrequency in ShaderConductor interface.
Also remove further references to Hull and Domain shaders as tessellation is no longer supported in UE5.

#rb Will.Damon, Brian.White, Christopher.Waters, Jeannoe.Morissette
#fyi Carl.Lloyd, Florin.Pascu, Ryan.Vance, Rolando.Caloca, Mihnea.Balta
#jira none
#rnx

[CL 17408818 by Lukas Hermanns in ue5-main branch]
2021-09-02 16:39:14 -04:00
Lukas Hermanns
39181ee030 Undo //UE5/Main/Engine/Source/... changelist 17355504
#fyi Krzysztof.Narkowicz, Rolando.Caloca, Mihnea.Balta
#jira none
#rnx

[CL 17408288 by Lukas Hermanns in ue5-main branch]
2021-09-02 16:05:32 -04:00
Lukas Hermanns
83d05953f7 Enable '-fdiagnostics-format' option in DXC and emit asbolute file paths in '#line'-directives.
#rb Krzysztof.Narkowicz
#fyi Rolando.Caloca, Mihnea.Balta
#jira none
#rnx

[CL 17355504 by Lukas Hermanns in ue5-main branch]
2021-08-30 14:04:53 -04:00
Lukas Hermanns
7642ebea94 Fix mapping of EHlslShaderFrequency when cross-compiling HLSL-to-HLSL as appendix to CL 17291947.
#rb Christopher.Waters
#jira UE-117831
#rnx

[CL 17317441 by Lukas Hermanns in ue5-main branch]
2021-08-26 10:21:49 -04:00
Lukas Hermanns
36f2a224a6 Cross-compile HLSL-to-HLSL after FXC crashed due to internal error.
#rb Christopher.Waters
#fyi Mihnea.Balta, Jonathan.Bard
#jira UE-117831

[CL 17291947 by Lukas Hermanns in ue5-main branch]
2021-08-24 15:33:52 -04:00
christopher waters
a737c92c4b Shader symbol terminology changes
- Splitting symbol generation and shader "debug info" generation into two different cvars. This should now allow us to generate symbols post-packaging without generating different shader variants. This should also enable us to always generate symbols and still have the final deduplicated shader sizes.
- r.Shaders.Symbols is now the primary way to enable shader symbols for debugging.
- r.Shaders.GenerateSymbols can be enabled to always generate symbols without writing them to disk.
- r.Shaders.WriteSymbols can be used to force write symbols if they were previously generated.
- r.Shaders.ExtraData can be used to generate shader names for engine runtime systems to use.
- NotifyShaderCooked replaced with NotifyShaderCompiled, prep for upcoming non-cook symbol writing.
- PC DXC shader compiles should only generate debug info when requested, not all the time.
- PC FXC shader compiles should generate debug info when requested, not just when r.Shaders.Optimize is 0.

#jira none
#rb arciel.rekman, lukas.hermanns
#preflight 611ad9035e737200015992db

[CL 17186155 by christopher waters in ue5-main branch]
2021-08-16 23:18:03 -04:00
guillaume abadie
2d493d4df9 Implements CFLAG_AllowRealTypes on SP_PCD3D_SM6
#rb chris.waters
#preflight 611ab4c19db7df0001caead4


#ROBOMERGE-SOURCE: CL 17179929
#ROBOMERGE-BOT: (v855-17104924)

[CL 17179943 by guillaume abadie in ue5-main branch]
2021-08-16 15:11:50 -04:00
jamie hayes
e6e7037458 Changed some ITargetPlatform methods (GetAllSupportedShaderFormats, GetTargetedShaderFormats) to remain compiled with a lack of WITH_ENGINE. Their omission isn't necessary from a dependency standpoint, and their access will be required in a future change.
#rb josh.adams
#jira none
#preflight 6113ed2a0d783d00011ef86e

[CL 17137761 by jamie hayes in ue5-main branch]
2021-08-11 13:03:20 -04:00
Tim Smith
006c65a63c Remove the bEnableReinstancing global setting to reduce confusion now that a project setting is available.
#rb none
#rnx
#jira UE-118772

[CL 17015824 by Tim Smith in ue5-main branch]
2021-08-02 10:26:16 -04:00
Tim Smith
4d09c02a58 Added log message for when quick start gets re-enabled.
#rb none
#rnx

[CL 17015792 by Tim Smith in ue5-main branch]
2021-08-02 10:24:01 -04:00
Tim Smith
f0b7213d6a Updating the xxhash license for version included in Live++
#rb none
#rnx

[CL 16967550 by Tim Smith in ue5-main branch]
2021-07-27 07:29:27 -04:00
Tim Smith
76073e9773 Fixed issue where starting PIE after starting a LiveCoding compile would lockup the editor.
#rb trivial
#jira UE-85026
#preflight 60ff11837f21c90001dbbf0b

[CL 16961146 by Tim Smith in ue5-main branch]
2021-07-26 17:07:00 -04:00
Lukas Hermanns
0f58a3008d Added 'precise' qualifier to fix Z-fighting with World Position Offset (WPO) in MaterialTemplate.ush. Only affects D3D11/DXBC shaders on Windows.
#rb Kevin.Ortegren
#fyi Mihnea.Balta
#jira UE-102725
#rnx

[CL 16911422 by Lukas Hermanns in ue5-main branch]
2021-07-21 13:01:39 -04:00
krzysztof narkowicz
3714db3ea2 Added per platform setting to toggle distance field support. If it's disabled then no distance data will be cooked and distance fields will be disabled on the target platform.
Renamed FDataDrivenPlatformInfo::AudioCompressionSettingsIniSectionName to TargetSettingsIniSectionName. It's now used to populate PlatformMask at runtime, to make sure that it matches between cook and runtime. Before it was possible to cook with e.g. GRayTracingPlaformMask=0, but then the cooked game would run with GRayTracingPlaformMask=1.

#rb Patrick.Kelly
[FYI] Patrick.Kelly, Daniel.Wright, Josh.Adams


#ROBOMERGE-OWNER: krzysztof.narkowicz
#ROBOMERGE-AUTHOR: krzysztof.narkowicz
#ROBOMERGE-SOURCE: CL 16825469
#ROBOMERGE-BOT: (v836-16769935)
#ROBOMERGE-CONFLICT from-shelf

[CL 16825718 by krzysztof narkowicz in ue5-main branch]
2021-07-12 11:20:21 -04:00
Joe Kirchoff
bb85eadc32 LC_StringUtil.cpp workaround is also required for MSVC Clang 12.0.0
[CL 16763061 by Joe Kirchoff in ue5-main branch]
2021-06-23 17:35:40 -04:00
christopher waters
a8185f9eb2 Removing validation skipping from the SM6.6 code path as it's a fully supported feature in our version of DXC.
#rb none
#jira none
#fyi graham.wihlidal, rune.stubbe

[CL 16756585 by christopher waters in ue5-main branch]
2021-06-23 10:14:39 -04:00
Joe Kirchoff
a1d7a8c3c7 Support VisualStudio2022 as a source code accessor and compilier
Note: _MSC_VER is still 1929 with the VS2022 preview, I expect it to be 1930 eventually when the compiler version is bumped which should match the versioning scheme for every other VS release

#rb none
#preflight 60d0c0d878c3b00001e335d9

[CL 16730633 by Joe Kirchoff in ue5-main branch]
2021-06-21 14:04:04 -04:00
Tim Smith
b48323a08e Fix to LiveCoding symbol resolution that could result in a function being patched to the wrong implementation. This would result in unpredictable behavior and crashes.
#rb jonathan.adamczewski
#rnx

[CL 16729989 by Tim Smith in ue5-main branch]
2021-06-21 13:06:16 -04:00
Tim Smith
bc337f9133 Add the ability to enable re-instancing via project settings. Old setting still supported.
Add the ability to enable auto compile when adding new C++ classes.
Fixed user feedback issues when adding new C++ classes.

#rb joe.kirchoff
#rnx
#jira UE-116958
#preflight 60cb2e884ce02c0001d278c1

[CL 16703582 by Tim Smith in ue5-main branch]
2021-06-17 08:46:37 -04:00