RawShaderMaterial not supported in WebGPU. How to customise fragment for both webgl and webgpu

I have this custom shader for text processing for webgl. But RawShaderMaterial is not supported in Webgpu. How to manipulate the texture sampler in webgpu without having to build a seperate node system which isn’t documented. I presume the nodes is automatically built from MeshBasicMaterial. Can I transform my shader using MeshBasicMaterial instead ? So add it to the MeshBasicMaterial fragment ?