Lukas Hermanns
2a6092c316
Replace custom Disassemble function in ShaderConductor interface with the one that was already there.
...
#rb Ryan.Vance
#fyi Carl.Lloyd
#jira none
#rnx
[CL 16118857 by Lukas Hermanns in ue5-main branch]
2021-04-26 17:13:29 -04:00
rob krajcarski
21572f4b70
Fix for Niagara velocity shaders being generated incorrectly, which would fail PSOs to be created.
...
Fixes issue where an array of non-indexed elements with custom semantics would have their 'optimized' code path generated as:
Local_Value = OptimizedValue;
Instead of the reverse.
#rb lukas.hermanns, rolando.caloca
#jira none
[CL 16116319 by rob krajcarski in ue5-main branch]
2021-04-26 13:43:03 -04:00
Ryan Vance
aacfa50a0d
Initial shader compilation changes to support VKRT.
...
#rb Lukas.Hermanns, Rolando.Caloca
[CL 16098805 by Ryan Vance in ue5-main branch]
2021-04-22 17:38:43 -04:00
christopher waters
83f70197d3
Tessellation Removal: Removing RHI Hull/Domain shader types and enums.
...
#rb lukas.hermanns
#jira UE-94564
#preflight 607f2e11eb4f050001d4655e
[CL 16066223 by christopher waters in ue5-main branch]
2021-04-20 17:00:25 -04:00
christopher waters
874ec853a4
Filling a few gaps in Mesh shader support. Adding ShouldCompilePermutation support to shader pipeline types to guard against unsupported shader types.
...
#jira none
#rb arciel.rekman
#preflight 60773f1c3f280e0001331ab8
[CL 16012256 by christopher waters in ue5-main branch]
2021-04-14 17:05:02 -04:00
Lukas Hermanns
677f2f50f1
Fix binding reflection for Metal backend: only Vulkan needs storage buffers to always occupy a UAV binding slot.
...
#rb Will.Damon
#jira none
#rnx
[CL 15979593 by Lukas Hermanns in ue5-main branch]
2021-04-12 13:16:00 -04:00
Lukas Hermanns
dc07d3f58e
Add "Disassemble" function to public interface of ShaderConductor.
...
Move ShaderConductor utility to disassemble SPIR-V into ShaderCompilerCommon module.
Fix --strip-reflect pass in SPIRV-Tools to remove all SPV_GOOGLE* reflection extensions.
Rebuild ShaderConductor for Win64, Linux, and Mac.
#rb Carl.Lloyd, Ryan.Vance
#fyi Mihnea.Balta, Rolando.Caloca, Will.Damon, Dmitriy.Dyomin
#jira none
#rnx
[CL 15978123 by Lukas Hermanns in ue5-main branch]
2021-04-12 11:25:06 -04:00
Lukas Hermanns
c75e86cf40
Move SPIR-V utility functions for reflection and binding information into SpirvCommon.h/.cpp source files.
...
#rb Will.Damon, Carl.Lloyd
#fyi Ryan.Vance, Mihnea.Balta, Rolando.Caloca, Dmitriy.Dyomin
#jira none
#rnx
[CL 15954206 by Lukas Hermanns in ue5-main branch]
2021-04-08 10:09:56 -04:00
Lukas Hermanns
6c9b164f8b
Added secondary "WritePackedGlobal" function to FHlslccHeaderWriter.
...
#rb Carl.Lloyd
#jira none
#rnx
[CL 15875032 by Lukas Hermanns in ue5-main branch]
2021-03-31 10:19:01 -04:00
Lukas Hermanns
2e1fb14cb7
Add "Optimize" function to public interface of ShaderConductor to perform SPIR-V optimizations *after* shader reflection (e.g. to strip reflection extensions).
...
#rb Carl.Lloyd, Will.Damon
#fyi Ryanc.Vance, Mihnea.Balta, Rolando.Caloca, Michael.Sartain, Brandon.Schaefer
#jira none
#rnx
[CL 15850443 by Lukas Hermanns in ue5-main branch]
2021-03-29 09:45:48 -04:00
will damon
0a4e702859
Remove all tessellation support from Metal RHI
...
- Also, remove _NOTESS Metal profile
#rb christopher.waters, richard.wallis, lukas.hermanns, rolando.caloca
#jira UE-94564
#rnx
[CL 15831929 by will damon in ue5-main branch]
2021-03-25 16:56:00 -04:00
christopher waters
1d0b1d44eb
Initial support for Mesh and Amplification Shaders. These new shader types are an optional feature of the RHIs and are only enabled on PC D3D12 with Feature Level SM6.
...
#jira none
#rb emil.persson, graham.wihlidal, lukas.hermanns
[CL 15742432 by christopher waters in ue5-main branch]
2021-03-18 18:42:49 -04:00
Guillaume Abadie
51824a3a5f
Pipedown FShaderParametersMetadata to the shader compile worker
...
#rb yuriy.odonnell
[CL 15714856 by Guillaume Abadie in ue5-main branch]
2021-03-16 16:19:23 -04:00
will damon
4d9be3b3ee
Update min macOS version to 10.15 and roll default MSL to v2.2.
...
[REVIEW] [at]richard.wallis [at]axel.riffard [at]jack.porter [at]dave.hunter
#jira UE-109999
#rnx
#ROBOMERGE-SOURCE: CL 15681710 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v781-15675533)
[CL 15684125 by will damon in ue5-main branch]
2021-03-11 21:32:06 -04:00
Lukas Hermanns
7e21c4a78b
Replaced "ArraySize" macro with template function to avoid identifier conflict.
...
#rb Rolando.Caloca
#jira none
#rnx
[CL 15645384 by Lukas Hermanns in ue5-main branch]
2021-03-08 16:37:06 -04:00
Rolando Caloca
24ccfe4d84
UE5 - Allow passing extra arguments to DXC
...
#rb Lukas.Hermanns
[CL 15436490 by Rolando Caloca in ue5-main branch]
2021-02-17 12:29:50 -04:00
Lukas Hermanns
7b754b50e6
Rebuild ShaderConductor for Win64, Mac, and Linux with SM6.6 support in DXC build. Updated ShaderConductor source in CL 15394233.
...
#rb none
#fyi Mihnea.Balta, Rolando.Caloca, Yuriy.ODonnell, Emil.Persson, Graham.Wihlidal, Will.Damon, Michael.Sartain, Brandon.Schaefer
#jira none
[CL 15394396 by Lukas Hermanns in ue5-main branch]
2021-02-11 20:33:29 -04:00
rolando caloca
2cf885b9f5
UE5 - Minor refactor in prep for other changes
...
#rb Lukas.Hermanns
#ROBOMERGE-SOURCE: CL 15370980 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v771-15082668)
[CL 15370995 by rolando caloca in ue5-main branch]
2021-02-09 17:40:13 -04:00
lukas hermanns
2fb43751e2
Always read DLL file to hash DXC version.
...
#author Yuriy.ODonnell
#rb Lukas.Hermanns
#jira none
#rnx
#ROBOMERGE-SOURCE: CL 15341050 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v771-15082668)
[CL 15341057 by lukas hermanns in ue5-main branch]
2021-02-05 15:45:40 -04:00
lukas hermanns
a59c5021e7
Add missing #include directive in DXCWrapper.cpp.
...
#rb none
[FYI] Yuriy.ODonnell
#jira UE-107871
#rnx
#ROBOMERGE-SOURCE: CL 15340670 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v771-15082668)
[CL 15340674 by lukas hermanns in ue5-main branch]
2021-02-05 15:18:17 -04:00
Lukas Hermanns
a4dfdcd0ad
Moved dxil.dll from DirectX folder into ShaderConductor binary folder and load dxil.dll manually to ensure it's always loaded from that location.
...
#rb Yuriy.ODonnell, Emil.Persson, Kenzo.Terelst
#fyi Mihnea.Balta, Rolando.Caloca, Graham.Wihlidal
#jira none
#rnx
[CL 15337426 by Lukas Hermanns in ue5-main branch]
2021-02-05 10:29:11 -04:00
Marc Audy
cac1fe0019
Merge UE5/Release-Engine-Staging @ CL# 15299266 to UE5/Main
...
This represents UE4/Main @ CL# 15277572
[CL 15299962 by Marc Audy in ue5-main branch]
2021-02-03 14:57:28 -04:00
Yuriy ODonnell
8789e0bb07
Include shader compiler DLL version in FShaderFormatD3D/Vulkan::GetVersion(), similar to how it's done for other platforms.
...
#rb Lukas.Hermanns
[CL 15276007 by Yuriy ODonnell in ue5-main branch]
2021-02-01 18:54:58 -04:00
Lukas Hermanns
829eddd5cf
Added HlslccHeaderWriter to unify writing of shader meta data.
...
#rb Mihnea.Balta, Will.Damon, Dmitriy.Dyomin
#fyi Rolando.Caloca, Brian.White
#jira none
#rnx
[CL 15225002 by Lukas Hermanns in ue5-main branch]
2021-01-27 17:53:40 -04:00
Tim Smith
4c3942091b
Fixing PVS 7.7 Issues:
...
warning V547: Expression 'XYZ' is always true/false.
#rb trivial
#jira UE-91644
[CL 15054368 by Tim Smith in ue5-main branch]
2021-01-12 16:15:34 -04:00