Skip to content

Add support for optix instance index - #208

Open
dvicini wants to merge 1 commit into
masterfrom
instance_index
Open

Add support for optix instance index#208
dvicini wants to merge 1 commit into
masterfrom
instance_index

Conversation

@dvicini

@dvicini dvicini commented Jul 22, 2026

Copy link
Copy Markdown
Member

This PR exposes the OptiX "instance_idx" field to DrJit. This was previously not exposed in the OptiX ray tracing routines.

The motivation to add this is to enable the implementation of a "batched" instancing plugin in Mitsuba 3. This would allow a single instance shape plugin to represent a collection of instances, which dramatically reduces JIT compilation cost for scenes with high instance counts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant