-
Notifications
You must be signed in to change notification settings - Fork 132
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
crash with 1-float attribute vertex stream #1175
Comments
This does not crash on Windows FYI, but we reproed on another project on Android. (did not had a chance to test on IOS) but just to let you know it might be platform specific. |
At least investigate what the problem is. |
The problem seems to be related to a bug when glslang parsers an "AssignmentMultiplicationVectorByFloat" operation. The problem is not related to the usage of a float buffer itself, but to the instruction where the UV vec2 gets multiplied by a float. Replacing the shader code with the code below make the code work and also uses a float vertex buffer:
This bug seems to be related to glslang, maybe updating to a more recent version might fix it. |
After updating glslang and SPIRV-Cross this issue was fixed. PR #1285 |
forum thread : https://forum.babylonjs.com/t/bgfx-babylon-native-bug-when-using-float-vertex-buffer-shader-attribute/36158
Vertex stream with 1 float stream crashes BN (in shader creation as it looks) whereas using a vec2 instead works fine.
The text was updated successfully, but these errors were encountered: