Edit

Share via


HitKind

Returns the value passed as the HitKind parameter to ReportHit.

Syntax

uint HitKind();

Remarks

If the intersection was reported by fixed-function triangle intersection, HitKind will be one of HIT_KIND_TRIANGLE_FRONT_FACE (254) or HIT_KIND_TRIANGLE_BACK_FACE (255).

This function can be called from the following raytracing shader types:

See also

Direct3D 12 Raytracing HLSL Reference