FMergeRenderContext::ForEachTargetLayer

Runs the given function for each all valid target layer in the bit indices in parameters, with the possibility of early exit Most easily used with a lambda as follows: ForEachTargetLayer([](int32 InTargetLayerIndex, FName InTargetLayerName) -> bool { return continueLoop ? true : false; });