14-Shaders.hlsl
#113 row
TraceRay(gRtScene, 0 /rayFlags/, 0xFF, 1 /* ray index*/, 0, 1, ray, shadowPayload);
---------------------------------------------------------------------------------------->
TraceRay(gRtScene, 0 /rayFlags/, 0xFF, 1 /* ray index*/, 2, 1, ray, shadowPayload);
I thine the muiltiplier for Geometry ContributionToHitGroupIndex may be 2, not 0.
Or it cannot fit with Shader Table Entry.