| 180 | } |
| 181 | |
| 182 | bool 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 | |
| 189 | void DrawEmitterCPU(RenderContextBatch& renderContextBatch, ParticleBuffer* buffer, DrawCall& drawCall, DrawPass drawModes, StaticFlags staticFlags, const BoundingSphere& bounds, uint32 renderModulesIndices, int8 sortOrder) |
| 190 | { |
no test coverage detected