Fixed size buffers per thread #817
Unanswered
ishaanshah
asked this question in
Q&A
Replies: 1 comment
-
Hi @ishaanshah , Just taking a look at the accompanying (old) Mitsuba code from the paper, I think you'd similarly want to store your parameters as an N-sized vector/list of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Is it possible to create a fixed-size buffer for each thread in the rendering loop? Something like
mi.VectorXf
, where theX
is defined during JIT compilation based upon some variable.I am trying to implement Efficient Rendering of Layered Materials using an Atomic Decomposition with Statistical Operators [Belcour, 2018] in Mitsuba 3. The paper computes a set of
N
energies and variances forN
layers depending on the shading point and viewing angle. Hence I need a way of storing theseN
floats per thread for further evaluation and sampling. Currently, I can render at max four layers as the floats can be stored in aVector4f
. However, it would be good to have an implementation that works for an arbitrary number of layers.Thanks
Beta Was this translation helpful? Give feedback.
All reactions