HitObject.Invoke
Description
Invokes closesthit or miss shading for the specified hit object. In case of a NOP HitObject, no shader is invoked.
Signature
static void HitObject.Invoke<payload_t>( RaytracingAccelerationStructure AccelerationStructure, HitObject HitOrMiss, inout payload_t Payload);
Generic Parameters
payload_t
Parameters
AccelerationStructure : RaytracingAccelerationStructure
HitOrMiss : HitObject
Payload : payload_t
Availability and Requirements
Defined for the following targets:
hlsl
Available in stages: raygen
, closesthit
, miss
.
Requires capability: hlsl_nvapi
.
glsl
Available in stages: raygen
, closesthit
, miss
.
spirv
Available in stages: raygen
, closesthit
, miss
.
Requires capabilities: spvRayTracingKHR
, spvShaderInvocationReorderNV
.