For x86_64, this code runs fine and produces the correct result
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from embree
[ RUN ] embree.basic
Intersection at t = 1
[ OK ] embree.basic (0 ms)
[----------] 1 test from embree (0 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (0 ms total)
[ PASSED ] 1 test.
However, when I compile embree and this test with emscripten 3.1.20, it doesn't run fine.
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from embree
[ RUN ] embree.basic
warning: unsupported syscall: __syscall_madvise
No Intersection
[ OK ] embree.basic (32 ms)
[----------] 1 test from embree (32 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (34 ms total)
[ PASSED ] 1 test.
I think the error has something to do with the alignment of the vertex and index buffer, but I am not sure how I should fix it. Any suggestion?
I am testing embree 4.1.0 with emscripten
I have created a basic test, with one triangle and a single ray
For x86_64, this code runs fine and produces the correct result
However, when I compile embree and this test with emscripten 3.1.20, it doesn't run fine.
I think the error has something to do with the alignment of the vertex and index buffer, but I am not sure how I should fix it. Any suggestion?