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

Add-on fails to start with the Vulkan backend #17

Open
jeroenbakker-atmind opened this issue Nov 21, 2024 · 1 comment
Open

Add-on fails to start with the Vulkan backend #17

jeroenbakker-atmind opened this issue Nov 21, 2024 · 1 comment

Comments

@jeroenbakker-atmind
Copy link

jeroenbakker-atmind commented Nov 21, 2024

  • Use Blender 4.3
  • Enable the Vulkan backend
  • Loading the add-on will crash blender

The reason is that the builtin shaders are OpenGL specific and requires to use gpu.types.ShaderCreateInfo so it will be cross compiled to Metal and Vulkan.

See https://projects.blender.org/blender/blender/issues/130555 for the original report and https://docs.blender.org/api/current/gpu.html#custom-shader-for-dotted-3d-line for an example of using ShaderCreateInfo

We also try to make the add-on not crash Blender, but unsure if we can make this fool-proof

@Dangry98
Copy link
Owner

Hi Jeroen, thanks for the report!

I will look into it once the Vulken stuff is a bit more stable and make sure it works in Blender 4.4 :)

For now, I guess its a known issue, but barely anyone is hopfully using Vulken in Blender 4.3 for production stuff, aside from testing, so it should be fine until Blender 4.4 is out with offical Vulken support, very hyped for it by the way! Thank you for your work!

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

2 participants