Fix particles regression on DirectX
This commit is contained in:
BIN
Content/Shaders/BitonicSort.flax
(Stored with Git LFS)
BIN
Content/Shaders/BitonicSort.flax
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Shaders/GPUParticlesSorting.flax
(Stored with Git LFS)
BIN
Content/Shaders/GPUParticlesSorting.flax
(Stored with Git LFS)
Binary file not shown.
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user