You can use a Shared header file to allow both your .cpp and your .usf files to know about this struct.
See “NaniteVisualization.h” and “NaniteDefinitions.h” for example.
Don’t forget you can include header files in your .usf files.
After that to pass TArray to your shader file you need a buffer. In your FGlobalShader implem :