Skip to main content

Module hit_object

Module hit_object 

Source
Expand description

Generating SPIR-V for ray tracing invocation reordering (hit objects).

This implements SPV_EXT_shader_invocation_reorder, which is exposed in WGSL by the wgpu_ray_tracing_invocation_reorder enable-extension.

Constantsยง

HIT_KIND_FRONT_FACING_TRIANGLE ๐Ÿ”’
Values of OpHitObjectGetHitKindEXT greater than or equal to this indicate a triangle hit; smaller values come from intersection shaders.