I’m initializing a context with multiple entry points in order to run traces against three different meshes with two different ray-generation programs (so there are 2 entry points). It works fine when I’ve set two rtObject variables, but when I set three, suddenly the rtTrace calls fail-- the exception program is called with UNKNOWN_ERROR.
Is there any known reason why two rtObjects would work but not three? It’s not a memory issue, because the same error occurs even if all three meshes are trivially small. Simply commenting out the line where I set the third rtObject variable fixes the error. I can work around the problem by reusing a variable–setting different rtObjects before each rtLaunch to the two entry points-- but that’s very slow.
Any insights would be helpful!