I was trying to use ParallelForWithTaskContext with an array of floats iterating over the vertex in a mesh.
The issue I have is that ParallelForWithTaskContext when set to initialize the array itself will only initialize it to thread count available on the machine and not the input number. The result is an undersized array.
Am I just using this wrong and this is only for work that is less then the maximum machine thread count?
Just initializing the array myself and calling ParallelFor with the same number and writing into the array index works without issue.