Closed YunHsiao closed 1 month ago
Hi @YunHsiao
Could you share a small C++ snippet that currently fails without your suggested change? I'm failing to see what is currently missing.
Sure, it could boil down to something like this:
#include "drjit/jit.h"
int main()
{
auto list = drjit::zeros<drjit::LLVMArray<float>>(10);
drjit::scatter(list, 1.0f, 0); // Compile error, left operand must be l-value
return 0;
}
Aha I see, I had never considered that possibility - I tend to always convert the values to JIT types before scattering. Thanks !
For JITArray
set_entry
is needed to write values.