create static method
Implementation
static Future<GpuTexture> create(
{required int width, required int height}) async {
final sw = WebgpuRend.instance;
final handle = sw.createTextureInternal(width, height);
if (handle == nullptr) throw "Failed to create texture";
final id = sw.getTextureIdInternal(handle);
final rawTexPtr = sw.getWgpuTextureInternal(handle);
final rawViewPtr = sw.getWgpuViewInternal(handle);
return GpuTexture._(
handle, id, rawTexPtr.cast(), rawViewPtr.cast(), width, height, true);
}