from reading The RTX Shader Binding Table Three Ways and doing some research, The sbtRecordStride doesn’t seem to be working as expected.
I’ve color coded the hit groups and I’ve run the code below:
traceRay(topLevelAS, gl_RayFlagsOpaque, 0xFF, 0, 2, 0, hitPoint, 0.001, direction, 1000, 0)
from the above link my expectation is that the code should trigger every 2nd hit group as sbtRecordStride = 2, but this doesn’t seem to be the case as it behaves just like:
traceRay(topLevelAS, gl_RayFlagsOpaque, 0xFF, 0, 0, 0, hitPoint, 0.001, direction, 1000, 0)
which triggers the hit groups in sequence, so do I just ignore the sbtRecordStride and just create hitgroups in sequence?