UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ParallelFor.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "Chaos/Defines.h"
5
6#if !COMPILE_WITHOUT_UNREAL_SUPPORT
7#include "Async/ParallelFor.h"
8#else
9#include <functional>
10
11// TODO(mlentine): Add parallel support
12static void ParallelFor(const int32 Size, std::function<void(int32)> PerParticleFunction)
13{
14 for (int32 i = 0; i < Size; ++i)
15 {
17 }
18}
19#endif
void ParallelFor(int32 Num, TFunctionRef< void(int32)> Body, bool bForceSingleThread, bool bPumpRenderingThread=false)
Definition ParallelFor.h:481
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
uint32 Size
Definition VulkanMemory.cpp:4034