-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Array of Structs #18
Comments
Hey, yes that should be possible, as long as you use array literals (instead of lists) if memory serves. Another option would be to create an |
I would like to contribute to the documentation and with an example, but I have been struggling due to #17 and some obscure runtime exceptions. For example, if I attempt to initialize an But I can initialize arrays, and I found
|
Sadly not atm. but this would certainly make sense. maybe a new namespace
Adding an intrinsic function can be done via the [<GLSLIntrnsic("mix({0}, {1}, {2})")>]
let mix (a : float) (b : float) (t : float) : float = onlyInShaderCode "mix" Hope that helps. |
Is it possible to simulate or create an
Arr
of a product type?Gives
Is there a way to use an f-sharp list and unroll it in the glsl, or the like?
The text was updated successfully, but these errors were encountered: