ESortBatchProcessingOrder

Defines the order in which sort batches are processed every frame.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/GPUSortManager.h

Include

#include "GPUSortManager.h"

Syntax

enum ESortBatchProcessingOrder
{
    Undefined                                           = 0,
    KeyGenAndSortAfterPreRender                         = 1,
    KeyGenAfterPreRenderAndSortAfterPostRenderOpaque    = 2,
    KeyGenAndSortAfterPostRenderOpaque                  = 3,
}

Values

Name

Description

Undefined

KeyGenAndSortAfterPreRender

KeyGenAfterPreRenderAndSortAfterPostRenderOpaque

KeyGenAndSortAfterPostRenderOpaque

Remarks

Defines the order in which sort batches are processed every frame. KeyGenAfterPreRenderAndSortAfterPostRenderOpaque is the most complex case since the KeyGen is called after PreRendeR() while the sort only happens after PostRenderOpaque(). This creates a situation where the FParticleSortBuffers need to be keep bound to the batch and can not be reused by other batches with this processing order.

also that KeyGenAfterPreRenderAndSortAfterPostRenderOpaque could include KeyGen after PostRenderOpaque().