Skip to content
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

HLSL Bindings don't work for Unity compute shaders #90

Open
MarcusElg opened this issue Jun 18, 2022 · 1 comment
Open

HLSL Bindings don't work for Unity compute shaders #90

MarcusElg opened this issue Jun 18, 2022 · 1 comment

Comments

@MarcusElg
Copy link

MarcusElg commented Jun 18, 2022

image
When trying to use the HLSL bindings in a Unity compute shaders it gives loads of errors. They are all "Cannot apply binary operator '+' on types 'FNLfloat' and 'FNLfloat'" or "Cannot apply binary operator '>=' on types 'FNLfloat' and 'int'" or similar. Do you know a way to fix this?

@MarcusElg MarcusElg changed the title HLSL Bindings don HLSL Bindings don't work for Unity compute shaders Jun 18, 2022
@MarcusElg
Copy link
Author

MarcusElg commented Jun 18, 2022

Replacing all occurences of FNLfloat with float solved the issue which is really strange, as the typedef should make them be basically the same thing 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant