I’m trying to shuffle around a bunch of data in a job. Here’s an example, let’s say you have multiple blocks of data and you want to move them into a single larger block of data. The number of blocks is arbitrary, so you’ll need to run multiple jobs to get these small blocks of data shuffled into the larger block of data in a peculiar way. It’s deterministic, so no two threads will ever write to the same spots in memory!
Knowing this, I would very much appreciate the ability to say “disable the safety check for just this nativearray/job, even between multiple separate jobs!”
I already have the target writable nativearrays tagged with [NativeDisableParallelForRestriction], and the source nativearrays with [ReadOnly], but the exception is still thrown. I appreciate the safety checks and normally they help me track down bugs that would normally be hard to find, but in this case they’re actually a burden and I need to remove them.
Any ideas?