Fix particles regression on DirectX

This commit is contained in:
Wojtek Figat
2025-08-06 23:39:46 +02:00
parent cf9c203855
commit 959371a995
4 changed files with 6 additions and 5 deletions

BIN
Content/Shaders/BitonicSort.flax (Stored with Git LFS)

Binary file not shown.

BIN
Content/Shaders/GPUParticlesSorting.flax (Stored with Git LFS)

Binary file not shown.

View File

@@ -264,6 +264,8 @@ void RenderList::AddDelayedDraw(DelayedDraw&& func)
void RenderList::DrainDelayedDraws(RenderContext& renderContext)
{
if (_delayedDraws.IsEmpty())
return;
PROFILE_GPU_CPU_NAMED("DelayedDraws");
for (DelayedDraw& e : _delayedDraws)
e(renderContext);

View File

@@ -68,7 +68,6 @@ void CS_IndirectArgs(uint groupIndex : SV_GroupIndex)
uint offset = 12 * prevDispatches;
// Generate outer sort dispatch arguments
UNROLL
for (uint j = k / 2; j > 1024; j /= 2)
{
// All of the groups of size 2j that are full