Auburn / FastNoiseLite

Fast Portable Noise Library - C# C++ C Java HLSL GLSL JavaScript Rust Go

Home Page:http://auburn.github.io/FastNoiseLite/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HLSL Bindings don't work for Unity compute shaders

MarcusElg opened this issue · comments

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?

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 🤔