ParallelForEach Data Member Function

Executes a GLSL compute shader as a lambda on the range specified by the iterators submitted to this function.

Prototype

int32 ParallelForEach( Uint32Iterator first, Uint32Iterator last, ComputeLambdaParams p_oParams )

Parameters

Parameter Type Parameter Name Documentation
<Uint32Iterator>firstAn iterator at the start of the range on which you wish to execute the lambda.
<Uint32Iterator>lastAn iterator at the end of the range on which you wish to execute the lambda.
<ComputeLambdaParams>p_oParamsA pointer to a <ComputeLambdaParams> object that specifies the compute shader source code, execution parameters, and code generation configuration.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.