Commit Graph

282 Commits

Author SHA1 Message Date
Dmitriy Dyomin
f7dffe9f57 Fixed: A few issues with depth access in a mobile renderer
Make SceneDepthAux a platform constant configuration, it can't depend on runtime vars
#rb none
#preflight 635e4bed1b41d36d48d26061

[CL 22854614 by Dmitriy Dyomin in ue5-main branch]
2022-10-30 08:26:11 -04:00
dan elksnitis
ecab3b4a9a [shaders] refactor usf/directcompile.txt dump into a utility in ShaderCompilerCommon to reduce code duplication in the shader backends
#rb Jason.Nadro
#rb Christopher.Waters
#preflight 635bf1e1df01edd149f5727e

[CL 22829548 by dan elksnitis in ue5-main branch]
2022-10-28 11:45:49 -04:00
christopher waters
f5ff98f2e1 ShaderParameterParser cleanup
- Making ConstantBufferType a constructor only argument. This removes the duplicated logic of calling ShouldUseStableConstantBuffer.
- Moving ShouldUseStableConstantBuffer to ShaderCompilerCommon.
- Made UE::ShaderCompilerCommon::ParseParameterType array arguments const

#jira UE-166341
#rb Guillaume.Abadie
#preflight 634eeceea1527f6b3bda9ff0

[CL 22608320 by christopher waters in ue5-main branch]
2022-10-18 15:25:05 -04:00
bryan sefcik
892629fe83 Fixed some paths that got updated to include the full "ThirdParty" path.
#jira
#preflight 6320877bbc40358fa2995069

[CL 21997782 by bryan sefcik in ue5-main branch]
2022-09-13 21:48:33 -04:00
carl lloyd
54f349c2e5 Added support to reduce array size by converting to structs and allowing OpenGLShaderCompiler to pack
Fixed bug with SpvOpPhi

#jira UE-160089
#rb Laura.Hermanns
#preflight 631f555712092e9faa809684

[CL 21974093 by carl lloyd in ue5-main branch]
2022-09-12 18:18:54 -04:00
bryan sefcik
a3dddc6630 Pass 1 on Developer include fixes:
Removed redundant private include paths from build.cs files.
Fixed include paths to be relative to the private or public folders.
Hid or removed includes that reached into other private module folders.
Updated PublicInclude paths when necessary.

#jira
#preflight 631e281694758d0bf2ea1399

[CL 21960082 by bryan sefcik in ue5-main branch]
2022-09-11 18:32:18 -04:00
dmitriy dyomin
12eb52b317 Fixed: Water texture missing throughout the map in BR on Android
#rb peter.sauerbrei

[CL 21864603 by dmitriy dyomin in ue5-main branch]
2022-09-07 18:03:53 -04:00
dmitriy dyomin
8edf003c00 Invalidate GL and Vulkan shaders
#ROBOMERGE-AUTHOR: dmitriy.dyomin
#ROBOMERGE-SOURCE: CL 21438408 via CL 21438416 via CL 21438418 via CL 21438420
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v981-21435820)

[CL 21438584 by dmitriy dyomin in ue5-main branch]
2022-08-18 02:04:03 -04:00
bryan sefcik
de1956f47b Ran IWYU on Public headers under Engine/Source/Developer/...
Headers are updated to contain any missing #includes needed to compile and #includes are sorted.  Nothing is removed.

#ushell-cherrypick of 21064294 by bryan.sefcik
#jira
#preflight 62d5c2111062f2e63015e598

#ROBOMERGE-OWNER: bryan.sefcik
#ROBOMERGE-AUTHOR: bryan.sefcik
#ROBOMERGE-SOURCE: CL 21155249 via CL 21158121 via CL 21161259
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21182053 by bryan sefcik in ue5-main branch]
2022-07-20 12:03:45 -04:00
christopher waters
a987160f55 Reworking the parameter rewrite code to do automatic bindless
- Refactoring FShaderParameterParser to use more string views since we can rely on OriginalParsedShader not changing.
- Split FShaderParameterParser::ParseAndMoveShaderParametersToRootConstantBuffer into smaller functions
- Moving FShaderParametersMetadata::IterateShaderParameterMembers into the only module it's used in, ShaderParameterParser.cpp
- Adding CFLAG_BindlessResources which will be set when ENABLE_BINDLESS_RESOURCES is set
- Adding CFLAG_BindlessSamplers which will be set when ENABLE_BINDLESS_SAMPLERS is set
- Adding resource/sampler detection and conversion to bindless in FShaderParameterParser

#jira UE-139616
#rb guillaume.abadie, jeannoe.morissette, yuriy.odonnell, laura.hermanns
#preflight 62d180cce468fcfd0b7001a0

[CL 21111994 by christopher waters in ue5-main branch]
2022-07-15 12:25:44 -04:00
christopher waters
b28a0c467f Moving ShaderParameterParser into its own source files.
#jira none
#rb guillaume.abadie, kenzo.terelst
#preflight 62b0ecb8ec13d14b5a1897ba

[CL 20757788 by christopher waters in ue5-main branch]
2022-06-21 10:49:56 -04:00
carl lloyd
9ae2f947d7 Fixed bug with column/row mismatch on non-square matrices in OpenGL
#fyi Wei.Liu
#rb trivial
#preflight none

[CL 20436298 by carl lloyd in ue5-main branch]
2022-05-31 09:21:55 -04:00
carl lloyd
642aed3a0f Added support for decal blending with PLS on OpenGL
#rb Dmitriy.Dyomin
#fyi Laura.Hermanns
#preflight 62712e07fe09c0cfbc366689

[CL 20024758 by carl lloyd in ue5-main branch]
2022-05-03 09:54:19 -04:00
Dmitriy Dyomin
271c3e1047 Removed support for separate shader objects from GL RHI as it was never used for GLES
#rb none
#jira none
#preflight 626802d0943f717ebfbb2968

[CL 19920264 by Dmitriy Dyomin in ue5-main branch]
2022-04-26 10:58:48 -04:00
christopher waters
46d39f296a Reorganizing reflection handling to funnel through common functions.
This is a prerequisite for upcoming bindless changes as it centralizes key points where we register the different binding types.

#jira none
#rb jason.nadro, eric.mcdaniel, jeannoe.morissette
#preflight 62574453f7476d662c8dd2fe

[CL 19761676 by christopher waters in ue5-main branch]
2022-04-14 15:46:20 -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
brian zaugg
3649f65762 Fixed some static analysis warnings.
[REVIEW] [at]Aaron.Eady, [at]Mic.Rooney, [at]Vivien.Wei, [at]Josh.Andersen


#ROBOMERGE-OWNER: brian.zaugg
#ROBOMERGE-AUTHOR: brian.zaugg
#ROBOMERGE-SOURCE: CL 19710337 via CL 19711095 via CL 19711239 via CL 19711254
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v938-19570697)

[CL 19712323 by brian zaugg in ue5-main branch]
2022-04-11 17:43:41 -04:00
christopher waters
0a8074d5a5 RemoveUniformBuffersFromSource shouldn't implicitly call TransformStringIntoCharacterArray.
#jira none
#rb jason.nadro
#preflight 624ddf0f090236773a1ad8c1

[CL 19656058 by christopher waters in ue5-main branch]
2022-04-06 17:19:38 -04:00
carl lloyd
3dae768112 Disabled force temporaries in OpenGLES due to bug when copying uniform buffer arrays with emulated uniform buffers
#jira UE-146596
#rb Jack.Porter
#preflight 62386738ec68595f3b772c54

#ROBOMERGE-AUTHOR: carl.lloyd
#ROBOMERGE-SOURCE: CL 19456922 in //UE5/Release-5.0/... via CL 19457907
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v933-19451510)

[CL 19461542 by carl lloyd in ue5-main branch]
2022-03-21 20:13:01 -04:00
Jack Porter
f9b83f0ebf Fix static analysis warning
#rb None
#jira UE-144634
#preflight 623297c2262232d86f84022e

[CL 19416678 by Jack Porter in ue5-main branch]
2022-03-16 22:11:28 -04:00
carl lloyd
3b34233233 Fix for OpenGL ES depth fetch when used without deferred rendering.
#rb Jack.Porter
#jira UE-143196
#preflight 6230ab5ae348fe2ada68a495
#lockdown Mitchell.Wilson

#ROBOMERGE-AUTHOR: carl.lloyd
#ROBOMERGE-SOURCE: CL 19387078 in //UE5/Release-5.0/... via CL 19387832
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v926-19321884)

[CL 19390359 by carl lloyd in ue5-main branch]
2022-03-15 14:33:37 -04:00
Lukas Hermanns
999fb99c6c Enable HLSL 2021 language version (CFLAG_HLSL2021) in shader compiler backends.
#rb Guillaume.Abadie, Will.Damon
#fyi Carl.Lloyd, Ryan.Vance, Christopher.Waters, Mihnea.Balta, Rolando.Caloca, Yuriy.ODonnell, Graham.Wihlidal
#jira UE-138358
#preflight 6227b6b3c653e7ef9f571dc8

[CL 19319858 by Lukas Hermanns in ue5-main branch]
2022-03-09 09:47:28 -05:00
carl lloyd
ff35ca4eed Fix for texelfetch parsing incorrect sampler
Fix for texture external

#jira UE-143237
#jira UE-142402
#rb jack.Porter
#lockdown Mitchell.Wilson
#preflight 6225ed30123eef55e6dd7879

#ROBOMERGE-AUTHOR: carl.lloyd
#ROBOMERGE-SOURCE: CL 19284954 in //UE5/Release-5.0/... via CL 19285699
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v924-19243027)

[CL 19291613 by carl lloyd in ue5-main branch]
2022-03-07 15:53:15 -05:00
carl lloyd
e2873b2301 Disable ubo padding as it causes a compile error when generating offsets for certain structures
#jira UE-143237
#rb Jack.Porter
#lockdown jack.Porter
#preflight none

#ROBOMERGE-AUTHOR: carl.lloyd
#ROBOMERGE-SOURCE: CL 19247396 in //UE5/Release-5.0/... via CL 19249325
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v924-19243027)

[CL 19263180 by carl lloyd in ue5-main branch]
2022-03-04 03:22:46 -05:00
jack porter
97e3d1ea77 Fixes for OpenGLES with DXC
- Fixed bug where Niagara GPU particles are not rendering
         - Lighting not rendering correctly under Deferred Shading on mobile
         - Fixed opengl desktop rendering bugs

#jira UE-140902 UE-135714
#rb Laura.Hermanns
#lockdown jack.Porter
#preflight 621f3cff31454c90ccf36365

#ROBOMERGE-AUTHOR: jack.porter
#ROBOMERGE-SOURCE: CL 19219609 in //UE5/Release-5.0/... via CL 19219624
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19227392 by jack porter in ue5-main branch]
2022-03-02 15:20:27 -05:00