struct HitObject
Description
Immutable data type representing a ray hit or a miss. Can be used to invoke hit or miss shading, or as a key in ReorderThread. Created by one of several methods described below. HitObject and its related functions are available in raytracing shader types only.
Methods
- init
- TraceRay
- TraceMotionRay
- MakeHit
- MakeMotionHit
- MakeMiss
- MakeMotionMiss
- MakeNop
- Invoke
- IsMiss
- IsHit
- IsNop
- GetRayDesc
- GetShaderTableIndex
- GetInstanceIndex
- GetInstanceID
- GetGeometryIndex
- GetPrimitiveIndex
- GetHitKind
- GetWorldToObject
- GetObjectToWorld
- GetCurrentTime
- GetObjectRayOrigin
- GetObjectRayDirection
- GetShaderRecordBufferHandle
- GetAttributes
- LoadLocalRootTableConstant