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
{{ message }}
This repository has been archived by the owner on Oct 9, 2019. It is now read-only.
Interestingly, we can actually pass in types that the compiler doesn't support and it still works. However, the compiler won't be able to infer types and catch errors this way. (To confirm this statement, try passing in a Bool. It works as expected, but you don't get a compiler error if you leave it out or pass a String instead.)
Once it's clear what types we actually need, I could open an issue or a pull request to the compiler.
The text was updated successfully, but these errors were encountered:
I think it's also worth discussing changing Math.VectorN.VecN to WebGL.Math.VecN etc. via integrating just the constructors for these types into webgl directly. (kinda like I did here).
This way you could still use linear-algebra, but you could also use my library or some other library that operates on {x: Float, y: Float}.
One argument for including the linear algebra types in webgl is this issue: elm-community/linear-algebra#8 that broke the implicit contract between two libraries by changing the internal native representation.
In this issue I want to collect new features that would require a compiler change, as the compiler only infers certain types from a
[glsl| |]
block.The types that are currently supported are:
Things that would be nice to have:
The relevant lines for the compiler are here.
Interestingly, we can actually pass in types that the compiler doesn't support and it still works. However, the compiler won't be able to infer types and catch errors this way.
(To confirm this statement, try passing in a
Bool
. It works as expected, but you don't get a compiler error if you leave it out or pass aString
instead.)Once it's clear what types we actually need, I could open an issue or a pull request to the compiler.
The text was updated successfully, but these errors were encountered: