What is the graphics API used by Babylon Native?

Hey there!

I was looking a bit at Babylon Native today and I didn’t find the graphics API that is used. Is it OpenGL, or Vulkan?

Are WGSL compute shaders supported?

Regarding the graphics APIs supported by Babylon Native, the following link should be helpful: BabylonNative/BUILDING.md at master · BabylonJS/BabylonNative · GitHub

  • For Windows: DirectX or Vulkan
  • For Linux: OpenGL or Vulkan
  • For Android: Vulkan or OpenGL
  • For Apple: Metal

Babylon Native uses bgfx as a cross-platform graphics library. Unfortunately, it does not seem to support WebGPU and WGSL at this time.

1 Like

Thanks that’s super interesting! So I guess there is no support at all for compute shaders at the moment?

1 Like

This is for your reference.
Below is an issue regarding WebGPU in the bgfx repository.

Currently, the WebGPU implementation of bgfx is experimental, and it seems that work will resume once all desktop browsers (Chrome, Firefox, Safari) have it enabled by default.
Therefore, in my personal opinion, I think it will be a while before Babylon Native incorporates support for WGSL and compute shaders.

1 Like

Alright, I will wait a few years then, no problem x)

I hope firefox and safari get the ball rolling on WebGPU soon!

2 Likes