# Is babylon automatically compatible with webgl and webgpu?

**URL:** <https://forum.babylonjs.com/t/is-babylon-automatically-compatible-with-webgl-and-webgpu/39940>\
**Category:** Questions\
**Tags:** webgpu\
**Created:** [April 17, 2023, 3:46am UTC](https://forum.babylonjs.com/t/is-babylon-automatically-compatible-with-webgl-and-webgpu/39940 "2023-04-17T03:46:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cat\_Ghost](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cat_ghost/32/22628_2.png) [@Cat\_Ghost](https://forum.babylonjs.com/u/Cat_Ghost)\
**Post date:** [April 17, 2023, 3:46am UTC](https://forum.babylonjs.com/t/is-babylon-automatically-compatible-with-webgl-and-webgpu/39940/1 "2023-04-17T03:46:21Z")

</div>

Am I just going to use the method and not pay particular attention to webgl versus webgpu

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [April 17, 2023, 4:39am UTC](https://forum.babylonjs.com/t/is-babylon-automatically-compatible-with-webgl-and-webgpu/39940/2 "2023-04-17T04:39:49Z")

</div>

It is compatible if you tell to Babylon what to use and check if it is possible to use webGPU (currently, before version 113, it is possible only with beta version of Chrome which needs to be installed separately).  
You may have a look how it is done here

> <https://github.com/RaananW/babylonjs-webpack-es6/blob/9532ad921d620def12c84f17b726e5814a39b4ad/src/index.ts#L20>

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [April 17, 2023, 3:36pm UTC](https://forum.babylonjs.com/t/is-babylon-automatically-compatible-with-webgl-and-webgpu/39940/3 "2023-04-17T15:36:59Z")

</div>

This would help doing it for you [Babylon.js/engineFactory.ts at 5e224caca6472a7f155443f81f38738d82133a5a · BabylonJS/Babylon.js · GitHub](https://github.com/BabylonJS/Babylon.js/blob/5e224caca6472a7f155443f81f38738d82133a5a/packages/dev/core/src/Engines/engineFactory.ts)
