-
Notifications
You must be signed in to change notification settings - Fork 20
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
Potentially wrong type exports #175
Comments
Hmm, neither |
I saw your other solution on #174 where you use |
SetShaderVec4 works yes, but I need to override typescript ( |
SetShaderValue isn't supported because it's not as simple to handle in our C implementation (its a void pointer, but you provide an extra argument to detail what value is supposed to be at that pointer). so instead I implemented statically typed functions that handle individual types. but somewhere along the way wires got crossed and they are named improperly across the typescript defs and the actual JS functions - put together a branch that fixes that |
Calling SetShaderVector4 gives a runtime error: SetShaderVector4 is not a function.
The correct function is SetShaderVec4.
As provided in your type definitions:
The text was updated successfully, but these errors were encountered: