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,
jw

Hello I would recommend using RawTexture object:

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

Where data is an ArrayBuffer