In the Programming Guide, it says the payload type ID is the index of the optixPayloadType of optixModuleComplieOptions. It seems that the payload Type IDs are local to one module but not on a global pipeline level. Then what shall I set the payloadtypeID if we trace from one module and land in another module?
Here is an example: In the SDK examples, the radiance ray and shadow ray are in the same module; therefore, it has 2 payload types in the module and it is very clear. What if the radiance ray and the shadow ray are in different modules? Each module then only needs one payload type. Radiance Ray uses the payload type at index 0 in the radiance module while shadow ray uses the payload type at index 0 in the shadow module. If the radiance ray called optixTrace to trace a shadow ray, what would be the payload type ID? There is an ambiguity between payload type 0 in different modules. Is there a global payload ID index at the pipeline level that can distinguish the payload type IDs across different modules
Thanks!!