pub unsafe fn execute_callable<T, const ID: usize>(data: &T)
Expand description

Invoke a callable shader.

  • INDEX is the index into the SBT table to select callable shader to execute.
  • data is a pointer to the callable data to pass into the called shader. data must have a storage class of callable_data or incoming_callable_data.

This instruction is allowed only in ray_generation, closest_hit, miss and callable execution models.

This instruction is a shader call instruction which will invoke a shader with the callable execution model.