MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / EmitterUseSorting

Function EmitterUseSorting

Source/Engine/Particles/Particles.cpp:182–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182bool EmitterUseSorting(RenderContextBatch& renderContextBatch, ParticleBuffer* buffer, DrawPass drawModes, const BoundingSphere& bounds)
183{
184 const RenderView& mainView = renderContextBatch.GetMainContext().View;
185 drawModes &= mainView.Pass;
186 return buffer->Emitter->Graph.SortModules.HasItems() && EnumHasAnyFlags(drawModes, DrawPass::Forward) && (mainView.IsCullingDisabled || mainView.CullingFrustum.Intersects(bounds));
187}
188
189void DrawEmitterCPU(RenderContextBatch& renderContextBatch, ParticleBuffer* buffer, DrawCall& drawCall, DrawPass drawModes, StaticFlags staticFlags, const BoundingSphere& bounds, uint32 renderModulesIndices, int8 sortOrder)
190{

Callers 2

DrawEmitterCPUFunction · 0.85
DrawEmitterGPUFunction · 0.85

Calls 4

EnumHasAnyFlagsFunction · 0.85
GetMainContextMethod · 0.45
HasItemsMethod · 0.45
IntersectsMethod · 0.45

Tested by

no test coverage detected