Skip to content
Discussion options

You must be logged in to vote

Hi @DoeringChristian

What is the meaning of that index and into what array would that be indexing?

Internally, Dr.Jit holds a registry of pointers (documentation in source code). Whenever a plugin is instantiated in Mitsuba it is registered with Dr.Jit and hence it's corresponding "vectorized pointer" is the index in that registry.

Could we use it to index into an array of our own, for example to store data related to the shape?

Yes. Currently, it is guaranteed that a plugin will keep the same register index for however long it lives. Of course, if some plugin is deleted and a new one created, the new plugin might re-use the old one's index.


In short, whenever a plugin is instantiate…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DoeringChristian
Comment options

DoeringChristian Aug 29, 2023
Collaborator Author

Answer selected by DoeringChristian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants