HitObject.MakeNop
Description
Creates a HitObject representing 429496726642949671684294967196NOP429496726642949671684294967197 (no operation) which is neither a hit nor a miss. Invoking a NOP hit object using HitObject::Invoke has no effect. Reordering by hit objects using ReorderThread will group NOP hit objects together. This can be useful in some reordering scenarios where future control flow for some threads is known to process neither a hit nor a miss.
Signature
static HitObject HitObject.MakeNop();
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
.