# WebGPU and Dynamic Texture

**URL:** <https://forum.babylonjs.com/t/webgpu-and-dynamic-texture/42065>\
**Category:** Questions\
**Tags:** webgpu, dynamic-texture\
**Created:** [June 30, 2023, 12:00pm UTC](https://forum.babylonjs.com/t/webgpu-and-dynamic-texture/42065 "2023-06-30T12:00:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hersir](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/hersir/32/108_2.png) [@Hersir](https://forum.babylonjs.com/u/Hersir)\
**Post date:** [June 30, 2023, 12:00pm UTC](https://forum.babylonjs.com/t/webgpu-and-dynamic-texture/42065/1 "2023-06-30T12:00:16Z")

</div>

Hi,  
could not find in supported list in docs, so decided to ask here.  
Is Dynamic Texture supported already in WebGPU ? as I got error in my projects and decided to create [PG](https://playground.babylonjs.com/#SB4FB2#4)

Basically its custom material with extra added sampler2d that is Dynamic Texture, as soon as I add it start to get errors, works fine with standard texture

Thank you

---

<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:** [June 30, 2023, 12:33pm UTC](https://forum.babylonjs.com/t/webgpu-and-dynamic-texture/42065/2 "2023-06-30T12:33:13Z")

</div>

In WebGL you don’t have an error but it still does not work, because you can see the amiga texture instead of your own texture.

It does not work in WebGPU because the dynamic texture is not ready, so it can’t be passed to the shader (it works in WebGL because it passes another (random) texture, but it really should not…).

You must call the `update()` function to make the texture ready.

Here’s a corrected PG:

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

---

<div class="post-metadata">

**Author:** ![Hersir](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/hersir/32/108_2.png) [@Hersir](https://forum.babylonjs.com/u/Hersir)\
**Post date:** [June 30, 2023, 12:36pm UTC](https://forum.babylonjs.com/t/webgpu-and-dynamic-texture/42065/3 "2023-06-30T12:36:35Z")

</div>

Thank you @Evgeni_Popov
