christopher waters
6481144e7e
Moving UB_MEMBER_UNIFORM_BLOCK to Platform.ush
...
#rb jeannoe.morissette
[CL 27872614 by christopher waters in ue5-main branch]
2023-09-14 05:21:29 -04:00
marc audy
65de35fdfb
Lof elements that were not renamed yet.
...
- MSM_Substrate
- MCT_Substrate
- FStrataMaterialInput
#rb charles.derousiers
[CL 27563163 by marc audy in ue5-main branch]
2023-09-01 15:06:19 -04:00
hellokenlee
f92b3683df
PR #10788 : Fixed undefined RasterizerOrderedTexture2D in Vulkan
...
#rb Mihnea.Balta
#jira UE-193663
#rnx
[CL 27504726 by hellokenlee in ue5-main branch]
2023-08-30 18:18:28 -04:00
laura hermanns
6322dc3790
Add [loop] attribute to Substrate shader to fix HLSL cross-compilation error on D3D11.
...
#rb Sebastien.Hillaire
#jira UE-186066
#rnx
[CL 26824400 by laura hermanns in ue5-main branch]
2023-08-03 15:59:21 -04:00
rune stubbe
025a5ea5ab
Added WaveInclusivePrefixSum to Platform.ush
...
#rb trivial
[FYI] Brian.karis, Graham.wihlidal, Jamie.hayes
[CL 26552933 by rune stubbe in ue5-main branch]
2023-07-24 15:39:57 -04:00
marc audy
1b8e7f29c4
Rework GPUScene support on mobile platforms.
...
Platforms that do support uniform buffer objects can now provide batched primitive data through UBO. There is a limit UBO range that can be accessed in shaders, so we group instances into batches that fit into this limit. Switch uses 64KB views, other platfroms16KB views. For each primitive we allocate 512Bytes and 256Bytes for instance. Mobile platforms that do not support UBO will use a desktop version of GPUScene.
There are a few things that still missing: Dynamic mesh passes, static lighting
#rb ola.olsson, benjamin.rouveyrol
[CL 26354848 by marc audy in ue5-main branch]
2023-06-30 16:34:38 -04:00
carl lloyd
c42df3f2f9
Fixes for Nanite on Mac
...
- Disable COMPILER_SUPPORTS_WAVE_VOTE for Mac
- Fixed bug where Texture2DArray was flattened due to atomics, but bound as Texture2D
- Fixed bug where defines were read incorrectly in shader compiler
#rb Zack.Neyland, Jamie.Hayes
[CL 26291315 by carl lloyd in ue5-main branch]
2023-06-28 13:49:35 -04:00
yuriy odonnell
b67c4cb749
Add bSupportsVertexShaderSRVs to DataDrivenShaderPlatformInfo which drives PLATFORM_SUPPORTS_VERTEX_SHADER_SRVS shader
...
* This should be used to guard any features that require explicitly accessing buffer or textures SRVs in vertex shaders
#rb Dmitriy.Dyomin
#rb Kenzo.Terelst
[CL 26207274 by yuriy odonnell in ue5-main branch]
2023-06-23 05:56:06 -04:00
carl lloyd
a793c2fcd1
Add support to enable an SM6 platform for Mac
...
#rb Zack.Neyland
#jira UE-184435
[CL 26062749 by carl lloyd in ue5-main branch]
2023-06-16 14:24:06 -04:00
graham wihlidal
56b728be26
Implemented COMPILER_ALLOW_CS_DERIVATIVES on applicable platforms, and decorated Nanite CS materials with it so we efficient deriv tex2d samples (not just mip0)
...
#fyi brian.karis, rune.stubbe, luke.thatcher
#preflight trivial
[CL 25597627 by graham wihlidal in ue5-main branch]
2023-05-23 23:04:46 -04:00
graham wihlidal
ad295e7995
Proper fix for globallycoherent qualifiers being used in FGlobalWorkQueue, and also some possibly uninitialized data errors on some platforms with tessellation tasks.
...
#rb brian.karis
#fyi rune.stubbe
#preflight trivial
[CL 25392402 by graham wihlidal in ue5-main branch]
2023-05-09 14:39:41 -04:00
Guillaume Abadie
d35ea3c63b
Makes min3(), med3(), max3() and fastClamp() first class citizen to speed up TSR convolutions
...
#rb yuriy.odonnell, Fabian.Giesen
#jira none
#preflight 6424bc2cb01a25d6a00426a7
[CL 24853150 by Guillaume Abadie in ue5-main branch]
2023-03-30 09:25:34 -04:00
Sebastien Hillaire
63ba0f6e05
Made packing and unpacking code common in a single file always included in common.ush.
...
This should fix double defines of packing and unpacking while making common optimised packing functions.
Moved code from Platform.ush is only used in file including common.ush.
#rb charles.derousiers
#preflight none
[CL 24800255 by Sebastien Hillaire in ue5-main branch]
2023-03-27 04:49:18 -04:00
jeannoe morissette
f812b514c3
VulkanRHI: Add VULKAN_PROFILE_SM6 definition to shaders for upcoming VULKAN_SM6.
...
#preflight 641b23ce76461c460b4e395c
#rnx
[CL 24751410 by jeannoe morissette in ue5-main branch]
2023-03-22 14:20:48 -04:00
Josh Adams
293da4f0ca
- Removed some NDA'd platform references in shader code
...
#rb rolando.caloca,brian.white,laura.hermanns
#preflight 6418c6f742618c85c4a47df8
[CL 24723471 by Josh Adams in ue5-main branch]
2023-03-20 16:56:42 -04:00
Guillaume Abadie
986ae7b87d
Implements PLATFORM_GPU_ARCH
...
#rb rolando.caloca
#jira none
#preflight trivial
[CL 24721858 by Guillaume Abadie in ue5-main branch]
2023-03-20 15:29:24 -04:00
graham wihlidal
bdeebd8854
Fixed incorrect * 3 on LDS size of GroupVerts in Nanite SW rasterizer, and removed NANITE_USE_CONSTRAINED_CLUSTERS / SW programmable logic when vert reuse is disabled
...
#rb brian.karis
#fyi rune.stubbe
#preflight skip
[CL 24129946 by graham wihlidal in ue5-main branch]
2023-02-10 18:45:23 -05:00
graham wihlidal
0c2f471556
Clean up u32 -> u16x2 pack/unpack HLSL intrinsics
...
#rb brian.karis
#fyi sebastien.hillaire
#preflight skip
[CL 23950257 by graham wihlidal in ue5-main branch]
2023-02-01 11:44:02 -05:00
Laura Hermanns
5decd75188
Fix shader compiler error about missing overloaded instance of "select_internal".
...
#rb Brian.White
#jira UE-172991
#preflight 63bc79d7bf54fa7b3616281b
#rnx
[CL 23626093 by Laura Hermanns in ue5-main branch]
2023-01-10 09:17:22 -05:00
Laura Hermanns
90946a5f85
Add FXC (COMPILER_HLSL) to removal condition of unsigned integer version of "select_internal". Appendix to CL 23511340.
...
#rb none
#fyi Jason.Nadro, Brian.Karis, Florin.Pascu, Dan.Elksnitis, Guillaume.Abadie
#preflight 639b88e443330e63e57e5c24
#jira UE-172772, UE-172330
#rnx
[CL 23532429 by Laura Hermanns in ue5-main branch]
2022-12-15 16:55:19 -05:00
Laura Hermanns
6dc9275d27
Limit removal of unsigned integer instance of overloaded HLSL function "select_internal" to COMPILER_DXC and COMPILER_HLSLCC only. Appendix to CL 23511340.
...
#rb none
#fyi Jason.Nadro, Brian.Karis, Florin.Pascu, Dan.Elksnitis, Guillaume.Abadie
#preflight 6399f7ed35203bc7aae9005c
#jira UE-172772
#rnx
[CL 23514109 by Laura Hermanns in ue5-main branch]
2022-12-14 13:07:17 -05:00
Laura Hermanns
79dc5b6dfe
Remove unsigned integer instance of overloaded HLSL function "select_internal" to fix ambiguity.
...
#rb Jason.Nadro
#fyi Brian.Karis, Florin.Pascu, Dan.Elksnitis, Guillaume.Abadie
#jira UE-172499
#preflight 6398ccb6c16855964dc0e897
#rnx
[CL 23511340 by Laura Hermanns in ue5-main branch]
2022-12-14 09:22:57 -05:00
florin pascu
d762ef8ed2
Re-submit
...
Added bSupportsClipDistance to DDSPI for mobile shader platforms that support SV_ClipDistance
#jira UE-169583
#preflight 638effe61776b8c21c7a95b2
[CL 23421785 by florin pascu in ue5-main branch]
2022-12-06 19:47:54 -05:00
florin pascu
482d4abc65
Revert 23388514
...
#rb none
[CL 23390550 by florin pascu in ue5-main branch]
2022-12-05 10:20:22 -05:00
florin pascu
9d4752e167
Added bSupportsClipDistance to DDSPI for mobile shader platforms that support SV_ClipDistance
...
#jira UE-169583
#preflight 638dbf8e976b1644cb13b19a
[CL 23389150 by florin pascu in ue5-main branch]
2022-12-05 07:59:53 -05:00