-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
example mesh2d_manual crash #4036
Comments
Okay, that's working for me locally. So, some sort of driver or backend bug :/ When I run this example, I get the following line.
What's your version of that? |
This is the version of the same line for me. 2022-02-25T16:35:51.237754Z INFO bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce GTX 1060 6GB", vendor: 4318, device: 7171, device_type: DiscreteGpu, backend: Vulkan } |
Yes, I guess you are right I am on main branch and I just checked the commit you mentioned regarding the change of handling of vertex attribute. |
there is a fix in #4037 you could try 🙂 |
I did check check this pull request and I can confirm that it does fix the problem. |
I just encountered a problem while creating a mesh and tried the |
# Objective Fixes bevyengine#4036 ## Solution - Use `VertexBufferLayout::from_vertex_formats` - Actually put a u32 into `ATTRIBUTE_COLOR` and convert it in the shader I'm not 100% sure about the color stuff. It seems like `ATTRIBUTE_COLOR` has been `Uint32` this whole time, but this example previously worked with `[f32; 4]` somehow, perhaps because the vertex layout was manually specified. Let me know if that can be improved, or feel free to close for an alternative fix.
# Objective Fixes bevyengine#4036 ## Solution - Use `VertexBufferLayout::from_vertex_formats` - Actually put a u32 into `ATTRIBUTE_COLOR` and convert it in the shader I'm not 100% sure about the color stuff. It seems like `ATTRIBUTE_COLOR` has been `Uint32` this whole time, but this example previously worked with `[f32; 4]` somehow, perhaps because the vertex layout was manually specified. Let me know if that can be improved, or feel free to close for an alternative fix.
Bevy version
0.6.0
Operating system & version
Arch Linux with NVIDIA Geforce GTX 1060 6GB
What you did
I ran the command:
What you expected to happen
A window should open with a 2D shape in it.
What actually happened
and immediately crashed with the following error
Additional information
The text was updated successfully, but these errors were encountered: