You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect that once the library takes care of the glm type specifics on the semantic side, the closest JS type array match would be used. This would be for memory efficiency also, but mainly to avoid misunderstandings/bugs when memory strides are passed into the graphics API functions.
Taking the chance to ask if PRs are welcome, maybe to fix this or for example to add typescript types to the library.
Thanks.
The text was updated successfully, but these errors were encountered:
LuisMerinoP
changed the title
glm types handle JS Float32Arrays under the hood.
glm types always use JS Float32Arrays under the hood.
Jan 21, 2024
Thanks for reporting this issue and your feedback. Unfortunately, the glm-js project is currently in the process of sunsetting and is no longer actively maintained (see discussion #19 for details).
While I can't personally address this, it does sounds like a potential issue with TypedArray usage. I recall working with different TypedArrays for uvec and ivec in glm.experimental.js or glm.buffers.js, or possibly related to legacy browser sniffing code.
If you're interested in contributing, you're welcome to fork the project and share your work here for potential visibility, but keep in mind that future support for such contributions is not guaranteed.
Thanks for your interest and your understanding! Best regards, -Tim
Hi there. Awesome work. Thanks very much for working this out.
Noticed that no matter the type of vector built,
FloatArray32
JS type is what is used under the hood.I would expect that once the library takes care of the glm type specifics on the semantic side, the closest JS type array match would be used. This would be for memory efficiency also, but mainly to avoid misunderstandings/bugs when memory strides are passed into the graphics API functions.
Taking the chance to ask if PRs are welcome, maybe to fix this or for example to add typescript types to the library.
Thanks.
The text was updated successfully, but these errors were encountered: