I have a package that specifies BurstCompile(FloatMode = FloatMode.Fast, FloatPrecision = FloatPrecision.Low)
burst intrinsic. Some applications that use the package may prefer higher precision over higher performance. This seems like an application decision, not a package decision. Is there a way for my package to get this intrinsic from the project settings or something like that?
1 Like
Not tested but something like this might work.
Make a new class that have auto properties that return a Float mode and Float properties.
In the get for those properties use define block to have all possible option. Leave a default one.
Your users should be able to set the define in their project and the compiler will take care of switch to the correct mode.
2 Likes
Nice @WAYNGames ! That idea works great. Implemented here and here for anyone that is interested.
1 Like