Slang OptiX anyhit loses payload compared to cuda equivalent when using IgnoreHit #6326
Labels
goal:client support
Feature or fix needed for a current slang user.
Milestone
I wrote a slang version of a cuda example which collects all the intersections in a hit buffer. The main difference seems to be in how the payload is handled, in cuda a pointer to the local stack is used, then the anyhit shader will write directly to that.
In slang there's an inout parameter which is mutated. However, every time the anyhit is called the payload seems to be reset to it's original state.
Some investigation - if IgnoreHit is not called, then ONE hit is registered, but when IgnoreHit is called, any mutations to the payload seem to disappear.
The text was updated successfully, but these errors were encountered: