Closed dmbfm closed 5 years ago
Thanks for the report, and it definitely looks like something fishy is happening here. Do you have a standalone example which reproduces this that we could poke around with?
Hi, thanks for the help, but I think it was just a problem with the javascript-side debugging scheme I was using. It seems it was printing the data after it was no longer valid in rust anyway.
I think we can close this, thanks man!
Summary
Hi,
So, I'm creating a
Vec<f32>
from a literal/static slice and trying to pass that to webgl'sbuffer
data, pretty much like in the webgl example from the documentation.I have something like this:
The thing is, If I do something like this:
I get garbage data on the javascript side. While if I do
The correct data gets to the javascript call.
This is not much of an issue for me, but I would like to understand why this happens. Is it because of the wasm's linear memory changing during the program's execution?
Thanks!