how to add a function(which can be called by EmitterPtr on GPU) into class Emitter #626
Answered
by
njroussel
GensokyoLover
asked this question in
Q&A
-
This is my function to be added into Emitter
it succeeded when i use Emitter*,but failed when EmitterPtr. I know EmitterPtr is an array and have tried much to know how it works,but still falls. i want to add it for calculating the contribution of each light source when rendering. thanks |
Beta Was this translation helpful? Give feedback.
Answered by
njroussel
Apr 3, 2023
Replies: 1 comment 5 replies
-
You need add a new macro in |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
njroussel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @GensokyoLover
You need add a new macro in
emitter.h
. Every single just-in-time compiled vcall must be declared withDRJIT_VCALL_METHOD(new_function)
.