Best way to consume a raw webgl texture in Texture

I have some typescript and shaders that generate a webgl texture (via the twgl.js library) and I want to use that as a texture on a material in Babylon. What is the best approach to getting that working?

Thanks in advance,

Hello I would recommend using RawTexture object:

var texture = BABYLON.RawTexture.CreateRGBTexture(
                512, 512,
                false, true);

Where data is an ArrayBuffer