Check if a foliage mesh instance is culled or not?

Hi!

I wanted to add some extra functionality for the foliage in c++. I was successfully able to, but there is a catch. I would like to turn off the functionality if the instance is culled, and only calculate when the instance is visible. Is there a way to check one particular instance is culled or not? I dont know exactly how the culling works. Is it just makes the object invisible? If so, then how can I check if one particular instance is visible? I’m able to do “foreach” on all instances and update the transformations on them, but how can I actually access the instance itself?

Thanks!