# Why doesn't WebGPU tolerate TEXTUREFORMAT\_RGB?

**URL:** <https://forum.babylonjs.com/t/why-doesnt-webgpu-tolerate-textureformat-rgb/46163>\
**Category:** Questions\
**Tags:** webgpu\
**Created:** [December 4, 2023, 2:38pm UTC](https://forum.babylonjs.com/t/why-doesnt-webgpu-tolerate-textureformat-rgb/46163 "2023-12-04T14:38:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DoGooder](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/dogooder/32/49072_2.png) [@DoGooder](https://forum.babylonjs.com/u/DoGooder)\
**Post date:** [December 4, 2023, 2:38pm UTC](https://forum.babylonjs.com/t/why-doesnt-webgpu-tolerate-textureformat-rgb/46163/1 "2023-12-04T14:38:40Z")

</div>

I am curious as to why the **WebGPU** engine does not tolerate TEXTUREFORMAT\_RGB. If under the hood , it really needs to follow some RGBA layout , can’t the engine internals handle that conversion?

 ![ERROR](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/d/c/dc8d4c1fb51edda231f81091bd6fe0612f0e8279.png)

**PlayGround:**

> **[Babylon.js Playground](https://playground.babylonjs.com/#MPD8LM%232)**
>
> 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:** [December 4, 2023, 5:02pm UTC](https://forum.babylonjs.com/t/why-doesnt-webgpu-tolerate-textureformat-rgb/46163/2 "2023-12-04T17:02:20Z")

</div>

Welcome aboard!

It’s better for the user to know that the RGB format is not supported than to hide the problem by using an RGBA format, which will consume more memory than expected. By forcing the user to choose an RGBA format, we ensure that they are fully aware that they will consume more memory than if the RGB format had been available. Note also that `Constants.TEXTURETYPE_UNSIGNED_INT_10F_11F_11F_REV` is supported by WebGPU (but is still a 32-bits format).

---

<div class="post-metadata">

**Author:** ![ArrayBuffer](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/arraybuffer/32/36536_2.png) [@ArrayBuffer](https://forum.babylonjs.com/u/ArrayBuffer)\
**Post date:** [December 4, 2023, 5:46pm UTC](https://forum.babylonjs.com/t/why-doesnt-webgpu-tolerate-textureformat-rgb/46163/3 "2023-12-04T17:46:25Z")

</div>

Thanks for the clarification @Evgeni_Popov .
