Navigation
API > API/Runtime > API/Runtime/RHI > API/Runtime/RHI/FRayTracingGeometryInstance
Syntax
uint32 DefaultUserData
Remarks
Each geometry copy can receive a user-provided integer, which can be used to retrieve extra shader parameters or customize appearance. This data can be retrieved using GetInstanceUserData() in closest/any hit shaders. If UserData view is empty, then DefaultUserData value will be used for all instances. If UserData view is used, then it must have the same number of entries as NumInstances.