I am trying to make an optix program that implements a single type of ray (each buildinput has one SBT record), and three different primitive types that use different intersection shaders, but the same hit function. The program is intended to track the trajectory of rays of light propagating through translucent custom capsule shapes (linear curves), spheres, and triangular meshes.
The scene is built in this hierarchy:
And the Shader binding table is built with the hitgroup functions in order of custom primitive, sphere, then triangles.
Also the sbt-instance-offset is already set to 0 in all primitives.
Here is the full error message:
(19475, 0, 0) error: mismatch between builtin IS shader and build input
call location: No line information available for this exception.
(19475, 0, 0) transform list of size 0:
[ 2][ ERROR]: Validation mode caught builtin exception OPTIX_EXCEPTION_CODE_BUILTIN_IS_MISMATCH
Error recording resource event on user stream (CUDA error string: unspecified launch failure, CUDA error code: 719)
[ 4][ DISK CACHE]: Closed database: “/var/tmp/OptixCache_aidenlewis/optix7cache.db”
[ 4][ DISK CACHE]: Cache data size: “35.7 MiB”
[ 2][ ERROR]: Error releasing namedConstant’s internal resources (CUDA error string: unspecified launch failure, CUDA error code: 719)
Error synching on OptixPipeline event (CUDA error string: unspecified launch failure, CUDA error code: 719)
Error destroying OptixPipeline event (CUDA error string: unspecified launch failure, CUDA error code: 719)
Failed to destroy launch resources (CUDA error string: unspecified launch failure, CUDA error code: 719)
Error de-initializing device (CUDA error string: unspecified launch failure, CUDA error code: 719)
A runtime error occured.
An Optix runtime error occurred:
‘Error during validation mode run’
at (mcx_context.cpp:820)
