# WebGPU error!Using webgpuengine was unsuccessful,Teach me why

**URL:** <https://forum.babylonjs.com/t/webgpu-error-using-webgpuengine-was-unsuccessful-teach-me-why/29651>\
**Category:** Questions\
**Created:** [April 24, 2022, 7:26am UTC](https://forum.babylonjs.com/t/webgpu-error-using-webgpuengine-was-unsuccessful-teach-me-why/29651 "2022-04-24T07:26:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuemiao](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yuemiao/32/13136_2.png) [@yuemiao](https://forum.babylonjs.com/u/yuemiao)\
**Post date:** [April 24, 2022, 7:26am UTC](https://forum.babylonjs.com/t/webgpu-error-using-webgpuengine-was-unsuccessful-teach-me-why/29651/1 "2022-04-24T07:26:58Z")

</div>

> **[Babylon.js Playground](https://playground.babylonjs.com/#0P32EJ)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [April 24, 2022, 11:11am UTC](https://forum.babylonjs.com/t/webgpu-error-using-webgpuengine-was-unsuccessful-teach-me-why/29651/3 "2022-04-24T11:11:35Z")

</div>

Point size is not supported in WebGPU, so you should not set `gl_PointSize`: points are always 1 pixel sized.

Also, `position` and `color` attributes are automatically injected so you should not pass them through the `attributes` parameter of the `ShaderMaterial` constructor.

Lastly, the z coordinate in NDC space is in the 0…1 range in WebGPU, not -1…1. So you must update the vertex coordinates you pass to the shader.

Here’s an updated PG that works both in WebGPU and WebGL:

> **[Babylon.js Playground](https://playground.babylonjs.com/#0P32EJ%231)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes
