HitObject.LoadLocalRootTableConstant¶
Description¶
Loads a root constant from the local root table referenced by the hit object. Valid if the hit object represents a hit or a miss. RootConstantOffsetInBytes must be a multiple of 4.
Signature¶
uint HitObject.LoadLocalRootTableConstant(uint RootConstantOffsetInBytes);
Parameters¶
RootConstantOffsetInBytes : uint¶
Availability and Requirements¶
Defined for the following targets:
hlsl¶
Available in stages: raygen, closesthit, miss.
Requires capabilities: hlsl_nvapi, ser_hlsl_native.
cuda¶
Available in stages: raygen, closesthit, miss.